Linked Questions
10 questions linked to/from Java API to find out the JDK version a class file is compiled for?
6
votes
5
answers
21k
views
How to determine the Java byte code version of the current class programatically? [duplicate]
I have a situation where the deployment platform is Java 5 and the development happens with Eclipse under Java 6 where we have established a procedure of having a new workspace created when beginning ...
344
votes
5
answers
389k
views
how to check the jdk version used to compile a .class file [duplicate]
Possible Duplicate:
Tool to read and display Java .class versions
I'm trying to debug a
"Bad version number in .class file'
error in java, is there a way for me to check which version the ....
3
votes
2
answers
8k
views
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresql.Driver'
I'm having trouble to migrate from an oracle db web-app context to a postgresql db web-app context.
I'm having a simple java spring-mvc web-app with flyway to init the database process and hibernate ...
4
votes
2
answers
3k
views
How can I know with which Java version a .class file is got was compiled?
I'm trying to find out how I can determine the version of a .class file by looking at its binary data. I know that using javap will tell me the version - but unfortunately I don't always have a JDK ...
RonK's user avatar
- 9,672
3
votes
2
answers
1k
views
Cross Compilation in Java 13 and Java 8
I want to load a Java version specific JavaCompiler.
This is how I take compiler instance currently:
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
My aim is to compile a "user Java ...
0
votes
1
answer
713
views
Find out which version of JDK a class was compiled in? [duplicate]
I have a class file, is it possible to check what version of the JDK it was compiled in?
The class file a servlet and it's being execute in a JSP page. In the JSP page, can I do a response.write of ...
1
vote
2
answers
141
views
Does a Java App display the version used?
Can I inspect java code and determine what runtime it will be able to run on? For instance I want to make sure all applications in our environment are using Sun SE6 and JDK 1.6.
Brig's user avatar
- 10.3k
1
vote
2
answers
353
views
Is there a way to find out what version of Java an applet was compiled in
I have an older applet I built. It naturally will not run in the browsers today.
Is there a way to find out what version of Java it was compiled in.
Also, what version of Java can i use so that my ...
1
vote
1
answer
307
views
Java(JRE) version compatibility for compiled code
When I programme I don't take care if I'm using the features in Java 7 or Java 5. But as far as I think if I use only Java 5 features my complied byte codes should be run also on a JRE version 5. But ...
0
votes
1
answer
70
views
Need to edit .jar from 2008 but code shows it's invalid
I have a .jar file from 2008 for a work project which I must edit and then repack into a .jar. I'm importing the .jar into Eclipse in order to make modifications but the classes use code such as "new ...