Apache POI JDK version - java

I was looking for examples on how to create an XML File in ANT for Java project using Apache POI library. I encountered this statement:
POI 3.5 and later requires the JDK version 1.5 or later. Versions prior to 3.5 require JDK 1.4+ here
I am using Apache 3.9 and set the JDK of my project to Java 1.4 and I didn't encounter any error when trying to run my program via eclipse. But my question is if I make build.xml in ANT and deploy the JAR file. Will my project still run(3)?
Extra info
I created a build.xml using the ANT plugin in eclipse then Run as --> Ant Build. I didn't encounter any error.
Also set the JRE to JDK1.4
I haven't tested this yet if it runs or not because I still don't know how to add a JAR configuration in build.xml... I am still learning how to use ANT.

If the project states that JDK 1.5 or higher is required it means that usually no testing is done with lower versions. It might still work (to some degree) as you found out, but likely will stop working with newer version of Apache POI.

Related

Issues with running a LibGDX project

I downloaded the libGDX setup jar file, I generated a project and imported it (to eclipse). Once I try to run the project eclipse outputs an error:
Description Resource Path Location Type
Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-4.6-bin.zip'.
Could not create service of type FileMetadataAccessor using NativeServices.createFileMetadataAccessor().
Could not determine java version from '11.0.2'.
I have no idea how to solve this problem.
The problem is that you are using Java 11. Try it with Java 8. The HTML module does not compile with a Java version greater then 8.
Gradle 4.6 likely does not support Java 11.
You can either upgrade to a newer version of Gradle or downgrade your JDK version.
I would recommend updating to Gradle 4.10.2 as it is the latest Gradle 4 variant (you can try Gradle 5 however it may introduce some breaking changes)
This can be done by running in the root of your project:
Linux / MacOS:
./gradlew wrapper --gradle-version=4.10.2
Windows:
gradle wrapper --gradle-version=4.10.2

Eclipse Oxygen/Neon: Unable to build ANT project

I am running into an issue. I am trying to build my code which is a legacy one built on Java 1.6. However, when i am trying to build it using ANT with a similar version then run into the JRE version 1.7 or greater is supported. I tried following instructions with Eclipse NEON but no luck.
https://blog.sibvisions.com/2016/06/30/eclipse-neon-with-ant-and-jre6/
I have a Eclipse Oxygen IDE and tried with it too but even it doesn't work.
The only challenge I can't move to the latest version while building .xml file is because the hosting server supports JDK 1.6 only.
Incase, if there is a way out then please suggest.
P.S:- added the error message in the below comment.
HERE IS THE ERROR MESSAGE
the JRE version 1.7 or greater is supported"
The ANT plugin form blog.sibvisions.com was created for Neon or Mars. There's a new plugin available for Oxygen.1. Simply search the blog.
The problem with eclipse is that the standard ANT plugin was created based on Java 7 and it has a version check built-in. It's not possible to use the standard ANT plugin with Java6... So use an older eclipse version or the modified ANT plugin.
I don't know the reason why the original ANT plugin is using Java 7 because the source can be written with Java 6 compatibility without problems. This is what the modified ANT plugin does.

ant-junit 1.5.3 jar is not available

I'm working on very old system, we have ant 1.5.3 running and we need to add unit tests to the environment. As far as i have researched, there is no available ant-junit 1.5.3 jar version. did it had a different name before ant-junit-1.7.0? My application says that JUnitTask is not available when compiling. (because ant and ant-junit.jar should be of same version)
for Ant 1.5.x the classes for optional tasks, such as <junit> were contained in optional.jar, in the following directory: org/apache/tools/ant/taskdefs/optional/junit to be precise.
from Ant 1.6.x onwards, optional.jar was split into multiple jars, one of them being ant-junit-1.6.*.jar.
so, i doubt ant-junit-1.5.3.jar ever existed.
read delegating-classloader-1.6, for more of this.

Trying to install eclipse Bytecode Outline plugin, missing dependency

I'm trying to install this: http://asm.ow2.org/eclipse/index.html, but I get this error which makes zero sense to me.
I'm running eclipse Kepler Service Release 1, build id 20130919-0819.
Cannot complete the install because one or more required items could not be found.
Software being installed: Bytecode Outline 2.1.0 (de.loskutov.BytecodeOutline.feature.feature.group 2.1.0)
Missing requirement: Bytecode Outline 2.1.0 (de.loskutov.BytecodeOutline.feature.feature.group 2.1.0) requires 'org.eclipse.help.appserver 0.0.0' but it could not be found
After Eclipse 3.3 "org.eclipse.help.appserver" was removed. See: eclipse:help-appserver
Description: This bundle provided implementation of a Tomcat-based web server application for the Eclipse help system. This was replaced in Eclipse 3.3 with a Jetty-based application server. This bundle defines no API and has been unused in the Eclipse platform for many releases.
It seems that the Eclipse ASM Bytecode Outline plugin was not maintained for quite some time which results in all kind of compatibility problems. For newer versions of Eclipse I therefore recommend installing this alternate version instead.
Use the Eclipse marketplace to find a version for the current eclipse version.

Is it possible to use the TestNG plugin with Netbeans 6.8?

I downloaded the TestNG NetBeans Plugin and tried to install it in my NetBeans 6.8. I'm running NetBeans IDE 6.8 (Build 200912041610).
When I click install, I get this message:
Some plugins require plugin External
Execution Support to be installed. The
plugin External Execution Support is
requested in version >= 1.19 but only
1.18.1 was found. The following plugin is affected:       TestNG
Support
Some plugins require plugin Common
Test Runner API to be installed. The
plugin Common Test Runner API is
requested in version >= 1.13 but only
1.12.1 was found. The following plugin is affected:       TestNG
Support
Some plugins require plugin Utilities
API to be installed. The plugin Utilities API is requested in version >= 8.0 but only 7.31.2.1 was found. The following plugin is affected:
      TestNG Support
Some plugins require plugin
org.openide.util.lookup to be
installed. The plugin
org.openide.util.lookup is requested
in version 8.0. The following plugin
is affected:       TestNG Support
Some plugins not installed to avoid
potential installation problems.
Is it possible to use the TestNG plugin with Netbeans 6.8?
The plugin manager doesn't even seem to know about any of the dependency plugins. Is the TestNG plugin build against a beta or experimental version? I have updated all of my plugins to the latest versions.
Update
I went ahead and built the module from the Netbeans 6.8 branch. It installs fine now. Unfortunately, when I run the tests, I can see the ant output, but the TestNG view says "No tests Executed." I'll keep fiddling with it to see if I can get it working.
I took a quick look at this. It appears that the nbm file that you can download from the wiki page that you referenced is compiled against the trunk of the NB sources, not the bits that are released as NetBeans 6.8.
I have sent a note to the developer about this.
You can build the NBM yourself, but it is pretty painful, since you have to get the contrib repository.
This is embarrassing not able to use either the old version of TestNG or new version of TestNG in NetBeans. Any one kindly create a correct TestNG plugin for version 6.8.
Unfortunately, I don't think anyone has been working on the TestNG Netbeans plug-in in a while, so I'm not surprised to hear you are running into difficulties. Try posting your question on their forums?
Otherwise, I continue to work actively on the Eclipse plug-in (new version released a few weeks ago) and TestNG is supported natively by IDEA...
Hope this helps.

Categories

Resources