Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAR Conversion

843785Dec 10 2008 — edited Dec 11 2008
I am kinda new to programming, only in my second class. I just finished up a project that is like a game like boggle. Anywho, I wanted to export it and it's telling me that you can't export the file with program arguments. Is there a way to convert my project so that i can eventually export it.

Example:
public static void main(String[] args)

{

     String fileName = args[0];

     ....

     ....

     ....

}
The args[0] is what holds the dictionary.txt which is the fileName that I eventually want to read into my game. Is there a way change it to an import statement or something so I can export it as an runable JAR file? Thank you for the help!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2009
Added on Dec 10 2008
13 comments
248 views