views:

96

answers:

4

COMPLETE EDIT BUT SIMILAR PROBLEM

What's the best software/plugin to enable FTP on Eclipse? I'm using FileZilla, but is there something better/easier?

+1  A: 

You are telling javac to compile gamedata.txt and it is reporting an error that it cannot compile this file.

I'd highly suggest using a tool like Ant to script your compilation/packaging/etc so you don't have to worry about typing in arguments on the command line.

matt b
I will. But for now, how do I fix this?
Definitely leave out `gamedata.txt`.
trashgod
A: 

There are some examples in the javac synopsis.

Edit: Updated link to Solaris examples, which are similar to Linux.

trashgod
A: 

First of all, the -J command line argument is not meant to be literally passed as -J<flag>. Taken directly from the javac man page (you can view the exact same thing by typing man javac into the shell):

-Joption
              Pass option to the java launcher called by javac.  For  example,
              -J-Xms48m  sets  the startup memory to 48 megabytes. Although it
              does not begin with -X, it is not a `standard option' of  javac.
              It is a common convention for -J to pass options to the underly-
              ing VM executing applications written in Java.

Really, if you want to make this an executable, you can just use the tools that exist in Eclipse to make an executable. Using the command-line javac adds an extra level of complexity that is unnecessary, and that Eclipse is specifically designed to remove.

In eclipse, you can (I think) use File->Export->Java->Executable JAR File to make your project into an executable JAR that any computer with the Java Virtual Machine can run. That way, your project will work on both your computer and the Unix system at your school. You may have to add gameData.txt manually to the JAR or include it separately in the package, not sure how Eclipse does that type of thing though.

Rafe Kettler
A: 

You can only compile .java files. If you remove the .txt file from the list of files to compile, it should work fine. If you want to compile all the files in a directory, you can simply use javac *.java

Dave McClelland
Still doesn't work. The problem is that I need to transport the gameData.txt file from my computer to my account. Any ideas how I can do that? Does that require ftp?