Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java applets

Status
Not open for further replies.

kiso

Structural
Joined
Dec 26, 2001
Messages
17
Location
FI

Hi all.

I'm a bit new with java, so this might be a stupid question.

I just downloaded the Java 2 SDK 1.4. I have some old java files which I compiled with the new 1.4-version. They were originally done with the 1.0-version (probably). The new compiled classes doesn't without the "Use Java 2 v1.4" checked in my browser.

Is there a way to compile applets with the Java 2 SDK 1.4 so that you can run them without the that HUGE java console?

thanks, Kim
 
Hello Kim,

You might have found the answer somewhere else already, but I'll put it here for you in case you haven't found it yet.

When you use the javac compiler you need to target the version if you want the massive plug-in to disappear. I had the same problem not too long ago myself.

I usually run the command as...

javac -target 1.1 (...+other options)

This will compile the code to the 1.1 version (which will work in some earlier browsers without the plug-in. However, if you have created something new using methods from the JDK 1.2, 1.3, or 1.4, I do not think it will work.

Hope this helps, Steve
--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top