By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

Javac target jvm issue

P: n/a
Hello,
My problem is making 'javac -target 1.2 -bootclasspath
/jre1.2/lib/rt.jar' work under jdk 1.4.2 on solaris with applets.

Explanation:
We have a web application jsp/servlets with applets.
Up until now we have used jdk1.2.2, everything working fine and
servlets/applets being 1.2.2 compatible.

We updated jdk to 1.4.2 and changed the code to work under 1.4.2 and
also
corrected all deprecated in 1.4.2. BUT, since all users still have jre
1.2.2
we had to make the application run under 1.2.2 as well.

1 This works:
Compiling all applet code with 1.2.2, plus all dependencies of course.
Compile rest of the code with 1.4.2. It is not pretty...

2 This doesnt work:
'javac -target 1.2 -bootclasspath /jre1.2.2/lib/rt.jar' when accessing
an applet with <applet code="" >

Note:
I dont have jdk1.2.2 installed, i copied the rt.jar from another
server.

Why doesnt 2 work...?
Peter
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.