Results 1 to 5 of 5
Thread: *.java to *.class
- 12-28-2009, 09:28 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 41
- Rep Power
- 0
- 12-28-2009, 09:38 PM #2
Using the command prompt, navigate to the folder in which your java files are located with the cd command:
atThePrompt>cd folder
Then use the compiler to compile the files with:
folder>javac *.java
The class files should appear in the same folder. To send them elswhere, say the classes folder, use the -d switch:
folder>javac -d classes *.java
- 12-28-2009, 09:42 PM #3
Member
- Join Date
- Dec 2009
- Posts
- 41
- Rep Power
- 0
hardwired,Thanks
- 12-28-2009, 11:20 PM #4gcampton Guest
and the run them simply: java filename.with_no_extension
- 12-29-2009, 02:19 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
This is first step to dig into Java. ;)
"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
Similar Threads
-
E:\IT 215 Java Programming\GUI1.java:125: class, interface, or enum expected
By tlouvierre in forum New To JavaReplies: 1Last Post: 05-31-2009, 10:57 PM -
E:\IT 215 Java Programming\GUI1.java:125: class, interface, or enum expected
By tlouvierre in forum New To JavaReplies: 1Last Post: 05-31-2009, 02:17 PM -
E:\IT 215 Java Programming\Inventory.java:36: class, interface, or enum expected
By tlouvierre in forum Advanced JavaReplies: 16Last Post: 05-28-2009, 03:41 PM -
E:\IT 215 Java Programming\public class Inventory.java:39: class, interface, or enum
By tlouvierre in forum New To JavaReplies: 14Last Post: 05-28-2009, 05:44 AM -
class.java to class.exe
By f_the_cook in forum New To JavaReplies: 11Last Post: 07-16-2008, 02:24 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks