Opening my bytecode
When I go to open my bytecode the .Class file it ask me what program to open with....just wondering what I needed to do... thanx for any help!
When I go to open my bytecode the .Class file it ask me what program to open with....just wondering what I needed to do... thanx for any help!
oh wait, are you asking how to RUN your java code?
or how to view the bytecode?
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html
trying to RUN my bytecode....i thought it's supposed to just open....I'm using eclipse to write the code and it builds perfect when i use it in the comipler but the bytecode just won't open
Message was edited by:
joedan06
You don't open your bytecode, you execute it. From the command line you use java MyClass. From an IDE you use whatever functionality they have to execute your program.
you don't open the bytecode, you run the main class with the java virtual machine. For example if I had a program who's main method was located in the RunMe class I would go into a DOS prompt (or terminal for you Linux people) and enter "java RunMe" in the correct directory, of course. If you want something that you can double click and have your program run you need to make a .jar file, which is easy as crapping your pants in eclipse. You just go to export, select jar file from the window that pops up, tell it what you want to export and most importantly, which class has the main method. Then it'll make a handy little .jar that will function the same as an .exe.