-
Bug
-
Resolution: Duplicate
-
P2
-
9
-
java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+148)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+148, mixed mode)I am using Oracle Linux 7.0
Test Environment
1. Download promoted build 148 from https://java.se.oracle.com/artifactory/re-release-local/jdk/9/148/bundles/linux-x64/jdk-9-ea+148_linux-x64_bin.tar.gz, extract to a folder say 'jdk9_148_build',
set JAVA_HOME=jdk9_148_build and set PATH=$JAVA_HOME/bin:$PATH2. Download ant from http://redrockdigimark.com/apachemirror//ant/binaries/apache-ant-1.9.7-bin.zip, extract to a folder say 'ant_folder' and set ANT_HOME=ant_folder and set PATH=$ANT_HOME/bin:$PATH
3. Download attached modular jar 'com.greetings.jar' to local folder.
4. Download attached secondarylauncher_linux.xml to local folder.
5. Make sure assuming com.greetings.jar is available in folder "secondarylaunchermodjars"
check jar produces following output
java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App1 ==> output is "PASS1"
java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App2 ==> output is "PASS2"
java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App3 ==> output is "PASS3"java -version java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+148) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+148, mixed mode) I am using Oracle Linux 7.0 Test Environment 1. Download promoted build 148 from https://java.se.oracle.com/artifactory/re-release-local/jdk/9/148/bundles/linux-x64/jdk-9-ea+148_linux-x64_bin.tar.gz , extract to a folder say 'jdk9_148_build', set JAVA_HOME=jdk9_148_build and set PATH=$JAVA_HOME/bin:$PATH 2. Download ant from http://redrockdigimark.com/apachemirror//ant/binaries/apache-ant-1.9.7-bin.zip , extract to a folder say 'ant_folder' and set ANT_HOME=ant_folder and set PATH=$ANT_HOME/bin:$PATH 3. Download attached modular jar 'com.greetings.jar' to local folder. 4. Download attached secondarylauncher_linux.xml to local folder. 5. Make sure assuming com.greetings.jar is available in folder "secondarylaunchermodjars" check jar produces following output java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App1 ==> output is "PASS1" java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App2 ==> output is "PASS2" java --module-path secondarylaunchermodjars --module com.greetings/com.greetings.App3 ==> output is "PASS3"
-
linux
Steps to reproduce
1. Verify java -version produces build 148 result in output.
2. Verify ant -version produces ant 1.9.7 result in output.
3. modify the following parameters in downloaded secondarylauncher_linux.xml
a. <taskdef classpath="..." ===> points to jar file $JAVA_HOME/lib/ant-javafx.jar
b. <fx:runtime>
<fx:module-path value="/export/home/gtee/Desktop/ramesh/jdk-9/jmods:/export/home/gtee/Desktop/ramesh/secondarylaunchermodjars"/> ===> this should be path of '$JAVA_HOME/jmods' and folder of downloaded 'com.greetings.jar'
after modifications save the file.
4. execute sudo rm -rf /tmp/*
5. execute command "ant -f secondarylauncher_linux.xml" at the command line.
6. you will see the output bundle "couplesecondarylauncherstest_ant_modularjar_rpm-1.0-1.x86_64.rpm" in bundles folder.
7. navigate to bundles folder and execute command "sudo rpm -ivh couplesecondarylauncherstest_ant_modularjar_rpm-1.0-1.x86_64.rpm" at the command line.
8. navigate to folder /opt/CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm and check the executables "CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm", "app2" and "app3" are present
ACTUAL OUTPUT:
please check the log "secondarylauncher_linux.log" for actual output of ant -f secondarylauncher_linux.xml, in secondarylauncher_linux.log check for contents "Exception: java.nio.file.FileAlreadyExistsException:"
EXPECTED OUTPUT:
app2 and app3 executables should be available in "Step 8" of Steps to reproduce, currently these executables are missing.
and below snapshot of contents of "/opt/CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm" is proof of missing executables app2 and app3.
<SNAPSHOT>
bash-4.2$ pwd
/opt/CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm
bash-4.2$ ls
app app2.png app3.png CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm.desktop libpackager.so
app2.desktop app3.desktop CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm CoupleSecondaryLaunchersTest_ANT_ModularJar_rpm.png runtime
</SNAPSHOT>
- duplicates
-
JDK-8170134 Linux Ant Swing Test Fails
-
- Resolved
-