Reputation: 18171
I have installed NetBeans IDE 8.2 and found that it refuses to generate 1.4 format java binary. How to solve this problem?
Upvotes: 1
Views: 1204
Reputation: 718876
One solution is to install a JDK, and compile from the command line using javac -target 1.4 ...
. If you really want to be sure that your code will work on Java 1.4, you should be using a Java 1.4 JDK. (Yes, they are still available ... in the Oracle Java download archives.)
It would be advisable to use a build tool.
The other thing is that compiling for the Java 1.4 platform ought to be a thing of the past. According to Wikipedia:
Public support and security updates for Java 1.4 ended in October 2008. Paid security updates for Oracle customers ended in February 2013.
If you are still using or supporting a product on Java 1.4, it is long past time that you stopped. (It looks like the NetBeans team has done this!)
Upvotes: 1