writing files to a server
So, I'm trying to compile the following code on a linux server, and i'm finding its a different world from compiling on my PC. Anyway, I'm using the GCJ command and I'm getting errors like this:
error: Can't find constructor `java.io.PrintWriter(Ljava/lang/String;)' in type `java.io.PrintWriter'.
PrintWriter outFile =new PrintWriter("home//runblip//public_html//gearscope//java//test.txt");
^
1 error
and here is my code:
import java.io.*;
publicclass serverTest
{
publicstaticvoid main (String[] args)
throws FileNotFoundException
{
PrintWriter outFile =new PrintWriter("home//runblip//public_html//gearscope//java//test.txt");
outFile.print("TEST!!");
outFile.close();
}}
Its just a basic file writer and it works on my PC but not on the server.
Is it that java can't work with the non-absolute path that I have from the server? Could anyone help me out please?
Also, are there any online resources to help with java on Linux, specifically servers?
Thanks in advance!

