|
OS: Windows XP
I am using yuicompressor-2.4.2 to compress some css before uploading to my server. But when i run it, the following exception appears:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/yahoo/platform/yui/compressor/...
Started by Carlos Muñoz on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If that is Java 6, you have entries in your path before to be explicit....
It looks like the older Java version is still on the system PATH environment variable%\system32\java -version and see what you get.
One if present.
|
|
If I compile an application using Java 5 code into bytecode, are the resulting .class files going to be able to run under Java 1.4?
If the latter can work and I'm trying to use a Java 5 framework in my Java 1.4 application, is there anything I should ...
Started by James McMahon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Java 4 would just fail when processing bytecode for some Java 5 language features....
Java 5 introduced new classfile attributes and format changes, to handle Varargs, enums, and generics.
Nope! .class files are forward compatible only.
|
|
Hi,
I'd like to read the Sun Java Swing tutorials for Java version 5.
It's easy to find Sun's tutorials for SDK 6. My searches of Sun's site and using Google didn't turn up any links (yet) to the older tutorial. Even the tutorial link on the SDK 5 page...
Started by kwutchak on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
So you really think that you can't.
You can easily find the every version of API documentation.
|
Ask your Facebook Friends
|
# which java /usr/bin/which: no java in (/usr/local/jdk/jdk1.5.0_10/bin/java:/usr/local/jdk/jdk1.5.0_10/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin)
I installed java in /usr/local...
Answer Snippets (Read the full thread at stackoverflow):
Use
export PATH=$PATH:/usr/local/jdk/jdk1.5.0_10/bin export JAVA_HOME=/usr/local/....
Can you do ls /usr/local/jdk/jdk1.5.0_10/bin And why is /usr/local/jdk/jdk1.5.0_10/bin/java in your path?
Is JAVA_HOME set?
It's not in your path.
|
|
The -version option can be used with both java and javac . Whats the difference?
Started by gameover on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Java:
jonathan@bespin:~$ java -....
java (the Java virtual machine) and javac to be absolutely sure that you've got the right version when you run something.
Each reports the version of the program it's running.
|
|
Java -version still returns old java version. I have red hat linux
I installed jdk 1.5 int eh follwing path and updated the bask profile and did a source but still the java version shows 1.4
JAVA_HOME=/usr/local/jdk/jdk1.5.0_10/bin/java PATH has /usr/...
Answer Snippets (Read the full thread at stackoverflow):
Unlike
You need to use the alternatives....
But i still see java -version even from the bin directory /usr/local/jdk/jdk1.5.0_10/bin as follows
Magic: run ./java -version
Note the dot and slash - this tells to execute from current dir.
|
|
I noticed sun is providing a 64bit version of Java. Does it perform better than the 32bit version?
Started by Joshua on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
As well as the compiler you might find differences.
Java programs, classically it also depends upon the implementation of Java.
Java will often perform better on things with heavy computation loads.
|
|
Our project application uses Java 5 and now when I update Java 6, there are some kind of inconsistency with functionality and seeing this effects our manager passed comment that "Java is platform independent but version dependent" , Is it really true ...
Started by Rachel on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Each version of Java SE has upwards language features or Java SE platform APIs, they will not be usable with an earlier version of the Java....
Is strongly compatible with previous versions of the Java platform.
|
|
We have a couple of applications running on Java 5 and would like now to bring in an application based on Java 6. Can both java versions live together under Windows? Is there any control panel to set the appropiate java version for different applications...
Started by Daniel Stanca on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
(Obviously replace 1.5 with the version....
By defining a environmentvariable with "java -version:1.5" etc should run with the correct version of java.
Then modify the batch file to use a certain Java version e.g.
|
|
Hi,
Is there any way to know which version of MS-Office I have on my pc using 'Java'?
Started by Supereme on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I can suggest you-Office have different unique fonts....
Is there a specific file in the installation of ms office that distinguishes one version with the possibly installed (to the o/s) ms office activex controls and query the version number.
|