Java viewer

Questions about programming languages and debugging
Post Reply
User avatar
w1tchdoctor
suck-o-fied!
suck-o-fied!
Posts: 50
Joined: 13 Jan 2006, 17:00
18

Java viewer

Post by w1tchdoctor »

I want 2 view some Java, but idk how.....any one have any ideas? I just have the raw code......... and it says the HTML tags are not allowed....
Alles hat ein Ende; ausgenommen Wurst hat zwei...

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11638
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

you have to compile it first, save the textfile with the source code as example.java and then compile it with javac example.java
if it don´t compile because of errors check the code with
javac -wc example.java
if it´s an Java applet you can view it with
appletviewer example.class (have to be compiled first).
if you need more help post the source code... :wink:

User avatar
w1tchdoctor
suck-o-fied!
suck-o-fied!
Posts: 50
Joined: 13 Jan 2006, 17:00
18

Post by w1tchdoctor »

it wont let me post it.....it says the tag r not allowed...

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11638
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

put it between the Code-tags, it´ll work then ... :wink:

User avatar
MaC-OwN
Newbie
Newbie
Posts: 3
Joined: 24 Feb 2006, 17:00
18

Post by MaC-OwN »

bad_brain wrote:javac example.java
what does this mean?.. cud u tell me step by step.. ive made it a .java file..
what do i do now? :? :D

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11638
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

if you compile "example.java" you´ll get a "example.class"-file, if it´s a normal Java application you can start it in command prompt by

Code: Select all

java example
and if it´s a Java applet with a GUI you can embed the class in html and view it in the browser or you can use the Java appletviewer (before compiling) by

Code: Select all

appletviewer example.java
check your other Java-post for more info... :)

Post Reply