Hi Paul,
This is something that has bothered me as well. I've got to work
with JDK 1.2 and 1.1, but there are enough differences in the command line
behaviour that JDE doesn't work well for switching quickly between the two.
Is there some way that some sort of compatibility switch can be
added so that if it is on, then the JDK 1.1 flags will be used, and if it is
off, then it defaults to JDK 1.2? The biggest reason for this would be
because of the differences in the way that the JDKs handle the -classpath
option on the command line.
jason
[EMAIL PROTECTED]
-----Original Message-----
From: Paul Kinnucan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 22, 1999 2:24 PM
To: Bruce Seely; [EMAIL PROTECTED]
Subject: Re: invalid flags
At 12:44 PM 4/22/99 -0700, Bruce Seely wrote:
>When I compile a file, the compilation command is including invalid flags.
>Does anyone know why?
>
Hi Bruce,
The command-line switches accepted by javac changed somewhat in JDK 1.2.
The JDE supports the latest (i.e., JDK 1.2) set of javac command-line
options. If you are using earlier versions of javac and you want to use a
command-line switch that is no longer supported by JDK 1.2 or has changed,
you have two options. In the case of the -depend switch, which changed to
-Xdepend in Java 1.2, you can cause the JDE to revert to the earlier form
by setting the jde-compile-option-depend-switch appropriately. In fact, you
need to do this, if you want to use the JDE's Java build command
(JDE->Build). For other switches that have changed, you can specify the
earlier form via the jde-compile-option-command-line-arg option.
- Paul