473,413 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Javac target jvm issue

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
0 1449

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Interzoner | last post by:
I am new at Java.. I installed j2sdk-1.4.2-nb-3.5-bin-windows on a Windows 2000 machine I can't find a "Javac"file......
2
by: Samuel Jackson | last post by:
Hi, I'm wanting to figure out what version bytecode is generated with Jikes. I'm developing in an environment where it's mandated we run on Java 1.3. I'd like to run Jikes as my compiler (for...
1
by: GG | last post by:
Hi all, This is not necessarily an Ant question, nor a standard sun Javac. I am using both, and all suggestions are welcome. I would like to build as many classes as possible from a given...
2
by: Fred | last post by:
I have just upgraded from Tomcat 5.0 to 5.0.27 and when I try to veiw the website I am getting an error message root cause of "Unable to find a javac compiler;com.sun.tools.javac.Main is not on the...
3
by: Ed Severn | last post by:
I'm sorry of this question has been posed and answered many times before. But I have avoided using the "package" statement because of this. Most of my classes have no "package" statement, and...
5
by: hawat.thufir | last post by:
I think the compile target is causing the errors...? from the terminal: $ cat build.xml <project name="tidy" default="package"> <import file="tidyBuild/properties.xml" /> <target...
4
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable...
0
by: mamoon | last post by:
hi all, background information: 1. OS- RedHat Enterprise Linux4 2. JDK installed- java-1.4.2-gcj hi, i am a newbie trying to compile my java programs. i checked whether any JDK is installed on...
9
dmjpro
by: dmjpro | last post by:
Hi .... I am trying to compile my generated Java code. Then I am getting an error .... "javac": CreateProcess error=2. The command is ... javac -d...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.