I have tested with testng.xml and got the folder called allure-results on my linux host. This folder has many .json files
-rw-rw-r-- 1 root root 202 Jan 27 03:20 038526c0-e53c-4907-a04b-7061eff12e91-container.json
-rw-rw-r-- 1 root root 548 Jan 27 03:20 17bd74ad-1f5e-4ef9-9f21-b2ec85cfca47-container.json
-rw-rw-r-- 1 root root 419 Jan 27 03:20 1bd85195-ab0d-4e17-ab12-800e5037405f-container.json
-rw-rw-r-- 1 root root 195 Jan 27 03:20 1f6a2505-8c58-452d-a564-e7ffa9512599-container.json
-rw-rw-r-- 1 root root 837 Jan 27 03:20 4fb8431a-162a-4f33-889b-2e5ee5c01843-result.json
-rw-rw-r-- 1 root root 415 Jan 27 03:20 990031d8-60eb-4379-8864-aee237fed175-container.json
The docker-compose file I used to create a container is as below.
version: '2'
services:
allure:
image: "frankescobar/allure-docker-service"
environment:
CHECK_RESULTS_EVERY_SECONDS: 1
KEEP_HISTORY: 1
ports:
- "5050:5050"
volumes:
- $PROJECT_PATH/allure-results:/app/allure-results
- $PROJECT_PATH/allure-reports:/app/default-reports
The project name I created in allure-docker is test.
To generate allure report, I request this URL.
http://192.168.100.58:5050/allure-docker-service/generate-report?project_id=test but got nothing in there.
I can see the same .json files in the container's path as they are correctly mounted as a volume.
allure#0ff7067fedb0:/app/allure-results$ ll
total 36
drwxrwxr-x 2 root root 4096 Jan 27 03:20 ./
drwxr-xr-x 1 allure allure 4096 Dec 14 10:03 ../
-rw-rw-r-- 1 root root 202 Jan 27 03:20 038526c0-e53c-4907-a04b-7061eff12e91-container.json
-rw-rw-r-- 1 root root 548 Jan 27 03:20 17bd74ad-1f5e-4ef9-9f21-b2ec85cfca47-container.json
-rw-rw-r-- 1 root root 419 Jan 27 03:20 1bd85195-ab0d-4e17-ab12-800e5037405f-container.json
-rw-rw-r-- 1 root root 195 Jan 27 03:20 1f6a2505-8c58-452d-a564-e7ffa9512599-container.json
-rw-rw-r-- 1 root root 837 Jan 27 03:20 4fb8431a-162a-4f33-889b-2e5ee5c01843-result.json
-rw-rw-r-- 1 root root 415 Jan 27 03:20 990031d8-60eb-4379-8864-aee237fed175-container.json
allure#0ff7067fedb0:/app/allure-results$
Question What am I missing to get the allure report?
I found the answer myself.
To generate a report, actually, I don't have to generate it manually as this allure-docker generates reports automatically if new results in the results directory are detected.
To get the report, remove allure-docker-service from URL request. Hence, it should be like,
http://192.168.100.58:5050/generate-report?project_id=test
Related
I have installed tomcat and deployed a java web application in that in Redhat.
My System property user.home is pointing to /opt/tomcat.
This application tries to access a file path like this
root = new File(rootPath);
if (!root.isDirectory()) {
throw new IllegalArgumentException("Root is not a directory!");
}
Now i want to access any folder outside /opt like a sibling to /opt, it results false in root.isDirectory(). But if a folder is inside /opt/tomcat then it is properly returning as true.
Both the folders /opt and /nasdata(folder which i want to access) have same permissions.
UPDATED
ls -la /opt
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 .
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 ..
drwxr-xr-x 10 tomcat tomcat 4096 Jul 26 21:20 tomcat
ls -la /opt/tomcat
drwxr-xr-x 10 tomcat tomcat 4096 Jul 26 21:20 .
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 ..
drwxr-x--- 2 tomcat tomcat 4096 Jul 21 16:15 bin
-rw-r----- 1 tomcat tomcat 18949 Jun 28 01:46 BUILDING.txt
drwxr-x--- 3 tomcat tomcat 4096 Jul 23 09:20 conf
-rw-r----- 1 tomcat tomcat 6210 Jun 28 01:46 CONTRIBUTING.md
drwxr-x--- 2 tomcat tomcat 4096 Jul 21 20:14 lib
-rw-r----- 1 tomcat tomcat 57092 Jun 28 01:46 LICENSE
drwxr-x--- 2 tomcat tomcat 4096 Jul 28 04:58 logs
lrwxrwxrwx 1 root root 9 Jul 26 21:20 nasdata -> /nasdata/
-rw-r----- 1 tomcat tomcat 2333 Jun 28 01:46 NOTICE
drwxr-x--- 2 tomcat tomcat 4096 Jul 23 09:20 .oracle_jre_usage
-rw-r----- 1 tomcat tomcat 3372 Jun 28 01:46 README.md
-rw-r----- 1 tomcat tomcat 6898 Jun 28 01:46 RELEASE-NOTES
-rw-r----- 1 tomcat tomcat 16507 Jun 28 01:46 RUNNING.txt
drwxr-x--- 2 tomcat tomcat 4096 Jul 23 09:34 temp
drwxr-x--- 9 tomcat tomcat 4096 Jul 23 09:37 webapps
drwxr-x--- 3 tomcat tomcat 4096 Jul 21 16:28 work
ls -la of my root folder. I am trying to access nasdata folder and giving /nasdata as the path.
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 .
dr-xr-xr-x. 21 root root 4096 Jul 21 20:53 ..
-rw-r--r-- 1 root root 0 Feb 4 20:43 .autorelabel
lrwxrwxrwx. 1 root root 7 Feb 4 20:39 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Feb 4 20:52 boot
drwxr-xr-x 19 root root 3220 Jul 21 14:04 dev
drwxr-xr-x. 89 root root 4096 Jul 21 21:00 etc
drwxr-xr-x. 2 root root 4096 Feb 4 20:39 home
drwxr-xr-x 3 root root 4096 Jul 21 16:55 home2
lrwxrwxrwx. 1 root root 7 Feb 4 20:39 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Feb 4 20:39 lib64 -> usr/lib64
drwxr-xr-x. 5 root root 1024 Jul 21 16:58 localhome
drwx------. 2 root root 16384 Feb 4 20:38 lost+found
drwxr-xr-x. 2 root root 4096 Dec 14 2017 media
drwxr-xr-x. 2 root root 4096 Dec 14 2017 mnt
drwxrwxr-x 2 root 9999 4096 Jul 26 16:58 nasdata
drwxr-xr-x. 8 root root 4096 Jul 21 16:15 opt
dr-xr-xr-x 150 root root 0 Jul 21 14:04 proc
dr-xr-x---. 7 root root 4096 Jul 21 16:26 root
drwxr-xr-x 30 root root 980 Jul 21 16:46 run
lrwxrwxrwx. 1 root root 8 Feb 4 20:39 sbin -> usr/sbin
-rw-r--r-- 1 root root 127599309 Jul 21 20:53 sk
drwxr-xr-x. 2 root root 4096 Dec 14 2017 srv
dr-xr-xr-x 13 root root 0 Jul 21 14:04 sys
drwxrwxrwt. 14 root root 4096 Jul 28 03:43 tmp
drwxr-xr-x. 14 root root 4096 Jul 21 16:08 usr
drwxr-xr-x. 20 root root 4096 Feb 4 20:46 var
Best Regards,
Saurav
I'm trying to install JDK 14 on my linux machine. It's running SliTaz. I got the tar.gz file, and I moved it to the /usr/lib/jvm folder. I've done everything required with linking, etc.
Though when I run the java command it doesn't work. It also doesn't work when I run it in the jvm/jdk/bin directory.
I think it is an executable permissions error? Because I get output when I do file java in the directory:
ethan#elirium:/usr/lib/jvm/jdk/bin$ file java
java: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, not stripped
ethan#elirium:/usr/lib/jvm/jdk/bin$ java
-sh: java: not found
ethan#elirium:/usr/lib/jvm/jdk/bin$ ./java
-sh: ./java: not found
ethan#elirium:/usr/lib/jvm/jdk/bin$
These are the permissions of every file in the bin directory:
-rwxr-xr-x 1 root root 140868 Mar 11 2016 apt
-rwxr-xr-x 1 root root 139260 Mar 11 2016 extcheck
-rwxr-xr-x 1 root root 139284 Mar 11 2016 idlj
-rwxr-xr-x 1 root root 13280 Jul 26 20:02 jaotc
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jar
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jarsigner
-rwxr-xr-x 1 root root 13144 Jul 26 20:02 java
-rwxr-xr-x 1 root root 2801 Mar 11 2016 java-rmi.cgi
-rwxr-xr-x 1 root root 13192 Jul 26 20:02 javac
-rwxr-xr-x 1 root root 13200 Jul 26 20:02 javadoc
-rwxr-xr-x 1 root root 140868 Mar 11 2016 javah
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 javap
lrwxrwxrwx 1 root root 40 Jul 26 19:59 javaws -> /usr/lib/jvm/java-icedtea/jre/bin/javaws
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jcmd
-rwxr-xr-x 1 root root 13232 Jul 26 20:02 jconsole
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jdb
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jdeprscan
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jdeps
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jfr
-rwxr-xr-x 1 root root 139252 Mar 11 2016 jhat
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jhsdb
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jimage
-rwxr-xr-x 1 root root 13192 Jul 26 20:02 jinfo
-rwxr-xr-x 1 root root 13192 Jul 26 20:02 jjs
-rwxr-xr-x 1 root root 13192 Jul 26 20:02 jlink
-rwxr-xr-x 1 root root 13192 Jul 26 20:02 jmap
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jmod
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jpackage
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jps
-rwxr-xr-x 1 root root 13200 Jul 26 20:02 jrunscript
-rwxr-xr-x 1 root root 139404 Mar 11 2016 jsadebugd
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jshell
-rwxr-xr-x 1 root root 13200 Jul 26 20:02 jstack
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 jstat
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 jstatd
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 keytool
-rwxr-xr-x 1 root root 139260 Mar 11 2016 native2ascii
lrwxrwxrwx 1 root root 38 Jul 26 19:59 orbd -> /usr/lib/jvm/java-icedtea/jre/bin/orbd
lrwxrwxrwx 1 root root 41 Jul 26 19:59 pack200 -> /usr/lib/jvm/java-icedtea/jre/bin/pack200
lrwxrwxrwx 1 root root 44 Jul 26 19:59 policytool -> /usr/lib/jvm/java-icedtea/jre/bin/policytool
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 rmic
-rwxr-xr-x 1 root root 13160 Jul 26 20:02 rmid
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 rmiregistry
-rwxr-xr-x 1 root root 139276 Mar 11 2016 schemagen
-rwxr-xr-x 1 root root 13168 Jul 26 20:02 serialver
lrwxrwxrwx 1 root root 44 Jul 26 19:59 servertool -> /usr/lib/jvm/java-icedtea/jre/bin/servertool
lrwxrwxrwx 1 root root 43 Jul 26 19:59 tnameserv -> /usr/lib/jvm/java-icedtea/jre/bin/tnameserv
lrwxrwxrwx 1 root root 43 Jul 26 19:59 unpack200 -> /usr/lib/jvm/java-icedtea/jre/bin/unpack200
-rwxr-xr-x 1 root root 139268 Mar 11 2016 wsgen
-rwxr-xr-x 1 root root 139268 Mar 11 2016 wsimport
-rwxr-xr-x 1 root root 139268 Mar 11 2016 xjc
ethan#elirium:/usr/lib/jvm/jdk/bin$
Whats wrong here? What do I need to do to fix it?
I know this question has been posted a lot, but I still can't resolve my problem.
So, I just downloaded a bin distribution from http://apache.mirrors.hoobly.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
after extracting the zip file, I moved it to /opt/apache-maven-3.3.9
Here's how my terminal look like when I run the commands:
xxx#xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ls
m2.conf mvn mvnDebug
xxx#xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ./mvn
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
xxx#xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
xxx#xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ printenv JAVA_HOME
/usr/lib/jvm/java-7-oracle
Java is installed correctly, but I still can't run the mvn executable file
The result of ls -lR /opt/apache-maven-3.3.9 is as follows:
xxx#xxx-VirtualBox:/opt/apache-maven-3.3.9/bin$ ls -lR /opt/apache-maven-3.3.9/
/opt/apache-maven-3.3.9/:
total 16
drwxr-xr-x 2 root root 4096 Jul 21 11:12 bin
drwxr-xr-x 2 root root 4096 Jul 21 11:12 boot
lrwxrwxrwx 1 root root 10 Dec 9 2015 conf -> /etc/maven
drwxr-xr-x 2 root root 4096 Jul 21 11:12 lib
drwxr-xr-x 2 root root 4096 Jul 21 11:12 man
/opt/apache-maven-3.3.9/bin:
total 12
lrwxrwxrwx 1 root root 18 Dec 9 2015 m2.conf -> /etc/maven/m2.conf
-rwxr-xr-x 1 root root 7383 Nov 19 2015 mvn
-rwxr-xr-x 1 root root 1815 Nov 19 2015 mvnDebug
/opt/apache-maven-3.3.9/boot:
total 0
lrwxrwxrwx 1 root root 34 Dec 9 2015 plexus-classworlds-2.x.jar -> ../../java/plexus-classworlds2.jar
/opt/apache-maven-3.3.9/lib:
total 0
lrwxrwxrwx 1 root root 26 Dec 9 2015 aopalliance.jar -> ../../java/aopalliance.jar
lrwxrwxrwx 1 root root 22 Dec 9 2015 cdi-api.jar -> ../../java/cdi-api.jar
lrwxrwxrwx 1 root root 26 Dec 9 2015 commons-cli.jar -> ../../java/commons-cli.jar
lrwxrwxrwx 1 root root 25 Dec 9 2015 commons-io.jar -> ../../java/commons-io.jar
lrwxrwxrwx 1 root root 28 Dec 9 2015 commons-lang3.jar -> ../../java/commons-lang3.jar
lrwxrwxrwx 1 root root 27 Dec 9 2015 commons-lang.jar -> ../../java/commons-lang.jar
lrwxrwxrwx 1 root root 33 Dec 9 2015 eclipse-aether-api.jar -> ../../java/eclipse-aether-api.jar
lrwxrwxrwx 1 root root 45 Dec 9 2015 eclipse-aether-connector-basic.jar -> ../../java/eclipse-aether-connector-basic.jar
lrwxrwxrwx 1 root root 34 Dec 9 2015 eclipse-aether-impl.jar -> ../../java/eclipse-aether-impl.jar
lrwxrwxrwx 1 root root 33 Dec 9 2015 eclipse-aether-spi.jar -> ../../java/eclipse-aether-spi.jar
lrwxrwxrwx 1 root root 45 Dec 9 2015 eclipse-aether-transport-wagon.jar -> ../../java/eclipse-aether-transport-wagon.jar
lrwxrwxrwx 1 root root 34 Dec 9 2015 eclipse-aether-util.jar -> ../../java/eclipse-aether-util.jar
lrwxrwxrwx 1 root root 20 Dec 9 2015 guava.jar -> ../../java/guava.jar
lrwxrwxrwx 1 root root 20 Dec 9 2015 guice.jar -> ../../java/guice.jar
lrwxrwxrwx 1 root root 38 Dec 9 2015 javax.inject.jar -> ../../java/atinject-jsr330-tck-1.0.jar
lrwxrwxrwx 1 root root 20 Dec 9 2015 jsoup.jar -> ../../java/jsoup.jar
lrwxrwxrwx 1 root root 37 Dec 9 2015 maven-aether-provider-3.x.jar -> ../../java/maven3-aether-provider.jar
lrwxrwxrwx 1 root root 30 Dec 9 2015 maven-artifact-3.x.jar -> ../../java/maven3-artifact.jar
lrwxrwxrwx 1 root root 37 Dec 9 2015 maven-builder-support-3.x.jar -> ../../java/maven3-builder-support.jar
lrwxrwxrwx 1 root root 28 Dec 9 2015 maven-compat-3.x.jar -> ../../java/maven3-compat.jar
lrwxrwxrwx 1 root root 26 Dec 9 2015 maven-core-3.x.jar -> ../../java/maven3-core.jar
lrwxrwxrwx 1 root root 30 Dec 9 2015 maven-embedder-3.x.jar -> ../../java/maven3-embedder.jar
lrwxrwxrwx 1 root root 27 Dec 9 2015 maven-model-3.x.jar -> ../../java/maven3-model.jar
lrwxrwxrwx 1 root root 35 Dec 9 2015 maven-model-builder-3.x.jar -> ../../java/maven3-model-builder.jar
lrwxrwxrwx 1 root root 32 Dec 9 2015 maven-plugin-api-3.x.jar -> ../../java/maven3-plugin-api.jar
lrwxrwxrwx 1 root root 41 Dec 9 2015 maven-repository-metadata-3.x.jar -> ../../java/maven3-repository-metadata.jar
lrwxrwxrwx 1 root root 30 Dec 9 2015 maven-settings-3.x.jar -> ../../java/maven3-settings.jar
lrwxrwxrwx 1 root root 38 Dec 9 2015 maven-settings-builder-3.x.jar -> ../../java/maven3-settings-builder.jar
lrwxrwxrwx 1 root root 28 Dec 9 2015 plexus-cipher.jar -> ../../java/plexus-cipher.jar
lrwxrwxrwx 1 root root 47 Dec 9 2015 plexus-component-annotations.jar -> ../../java/plexus-component-annotations-1.5.jar
lrwxrwxrwx 1 root root 35 Dec 9 2015 plexus-interpolation.jar -> ../../java/plexus-interpolation.jar
lrwxrwxrwx 1 root root 36 Dec 9 2015 plexus-sec-dispatcher.jar -> ../../java/plexus-sec-dispatcher.jar
lrwxrwxrwx 1 root root 28 Dec 9 2015 plexus-utils.jar -> ../../java/plexus-utils2.jar
lrwxrwxrwx 1 root root 26 Dec 9 2015 sisu-inject.jar -> ../../java/sisu-inject.jar
lrwxrwxrwx 1 root root 26 Dec 9 2015 sisu-plexus.jar -> ../../java/sisu-plexus.jar
lrwxrwxrwx 1 root root 24 Dec 9 2015 slf4j-api.jar -> ../../java/slf4j-api.jar
lrwxrwxrwx 1 root root 27 Dec 9 2015 slf4j-simple.jar -> ../../java/slf4j-simple.jar
lrwxrwxrwx 1 root root 29 Dec 9 2015 wagon-file.jar -> ../../java/wagon-file-2.x.jar
lrwxrwxrwx 1 root root 36 Dec 9 2015 wagon-http-shaded.jar -> ../../java/wagon-http-shaded-2.x.jar
lrwxrwxrwx 1 root root 36 Dec 9 2015 wagon-http-shared.jar -> ../../java/wagon-http-shared-2.x.jar
lrwxrwxrwx 1 root root 37 Dec 9 2015 wagon-provider-api.jar -> ../../java/wagon-provider-api-2.x.jar
/opt/apache-maven-3.3.9/man:
total 8
-rw-r--r-- 1 root root 1229 Nov 19 2015 mvn.1.gz
-rw-r--r-- 1 root root 1240 Nov 19 2015 mvnDebug.1.gz
Windows 7, JDK 8 ->
In my case there was a problem with the .zip file, which I have taken from Maven site. I've found that there was nothing in this \boot folder. There should be that
plexus-classworld which shows that org.codehaus.plexus.classworlds.launcher.Launcher.
for %%i in ("%MAVEN_HOME%"\boot\plexus-classworlds-) do set CLASSWORLDS_JAR="%%i"
set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher*
I downloaded new Maven (.tar), set MAVEN_HOME and PATH.
Now it works.
So CHECK THAT FOLDER. IF EMPTY, DOWNLOAD NEW ONE.
I installed Intellj 15 in my macos. While running it throws following error.
$ /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/MacOS/idea
2016-05-21 18:07:53.774 idea[1307:51782] Value of IDEA_JDK: (null)
2016-05-21 18:07:53.778 idea[1307:51795] fullFileName is: /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.778 idea[1307:51795] fullFileName exists: /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.778 idea[1307:51795] Value of IDEA_VM_OPTIONS is (null)
2016-05-21 18:07:53.778 idea[1307:51795] Processing VMOptions file at /Applications/IntelliJ IDEA 15 CE.app/Contents/bin/idea.vmoptions
2016-05-21 18:07:53.779 idea[1307:51795] Done
Error: could not find libjava.dylib
Failed to GetJREPath()
2016-05-21 18:07:53.779 idea[1307:51795] JNI_CreateJavaVM (/Applications/IntelliJ IDEA 15 CE.app/Contents/jre/jdk) failed: 4294967295
I have JAVA_HOME set as
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/"
I have libjava.dylib in /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/.
Also, I have libjava.dylib in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/
$ ll /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/
total 251384
drwxrwxr-x 2 root wheel 68 Feb 1 22:02 applet
-rw-rw-r-- 1 root wheel 1378 Dec 22 18:26 calendars.properties
-rw-rw-r-- 1 root wheel 3133473 Dec 22 18:26 charsets.jar
-rw-rw-r-- 1 root wheel 72450 Dec 22 18:26 classlist
drwxrwxr-x 7 root wheel 238 Feb 1 22:02 cmm
-rw-rw-r-- 1 root wheel 5916 Dec 22 18:26 content-types.properties
-rw-rw-r-- 1 root wheel 4122 Dec 22 18:26 currency.data
drwxrwxr-x 24 root wheel 816 Feb 1 22:02 deploy
-rw-rw-r-- 1 root wheel 2218758 Dec 22 18:28 deploy.jar
drwxrwxr-x 13 root wheel 442 Feb 1 22:02 ext
-rw-rw-r-- 1 root wheel 4116 Dec 22 18:26 flavormap.properties
-rw-rw-r-- 1 root wheel 3058 Dec 22 18:26 fontconfig.bfc
-rw-rw-r-- 1 root wheel 8087 Dec 22 18:26 fontconfig.properties.src
drwxrwxr-x 11 root wheel 374 Feb 1 22:02 fonts
-rw-rw-r-- 1 root wheel 13962 Dec 22 18:26 hijrah-config-umalqura.properties
drwxrwxr-x 3 root wheel 102 Oct 6 2015 images
-rw-rw-r-- 1 root wheel 55 Dec 22 16:03 javafx.properties
-rw-rw-r-- 1 root wheel 471677 Dec 22 18:28 javaws.jar
-rw-rw-r-- 1 root wheel 114950 Dec 22 18:26 jce.jar
drwxrwxr-x 4 root wheel 136 Feb 1 22:02 jfr
-rw-rw-r-- 1 root wheel 560452 Dec 22 18:26 jfr.jar
-rw-rw-r-- 1 root wheel 33930 Dec 22 16:03 jfxswt.jar
drwxrwxr-x 3 root wheel 102 Feb 1 22:02 jli
-rwxrwxr-x 1 root wheel 15136 Dec 22 18:26 jspawnhelper
-rw-rw-r-- 1 root wheel 633834 Dec 22 18:26 jsse.jar
-rw-rw-r-- 1 root wheel 624 Dec 22 18:26 jvm.cfg
-rw-rw-r-- 1 root wheel 4226 Dec 22 18:26 jvm.hprof.txt
-rw-rw-r-- 1 root wheel 45120 Dec 22 18:26 libAppleScriptEngine.dylib
-rw-rw-r-- 1 root wheel 16068 Dec 22 18:26 libattach.dylib
-rw-rw-r-- 1 root wheel 552948 Dec 22 18:26 libawt.dylib
-rwxrwxr-x 1 root wheel 721004 Dec 22 18:26 libawt_lwawt.dylib
-rwxrwxr-x 1 root wheel 9164 Dec 22 18:26 libbci.dylib
-rw-rw-r-- 1 root wheel 186456 Dec 22 18:26 libdcpr.dylib
-rwxrwxr-x 1 root wheel 62900 Dec 22 16:03 libdecora_sse.dylib
-rw-rw-r-- 1 root wheel 166872 Dec 22 18:28 libdeploy.dylib
-rw-rw-r-- 1 root wheel 25616 Dec 22 18:26 libdt_socket.dylib
-rw-rw-r-- 1 root wheel 419360 Dec 22 18:26 libfontmanager.dylib
-rwxrwxr-x 1 root wheel 174156 Dec 22 16:03 libfxplugins.dylib
-rw-rw-r-- 1 root wheel 380580 Dec 22 16:03 libglass.dylib
-rwxrwxr-x 1 root wheel 1185040 Dec 22 16:03 libglib-lite.dylib
-rw-rw-r-- 1 root wheel 1537888 Dec 22 16:03 libgstreamer-lite.dylib
-rw-rw-r-- 1 root wheel 212872 Dec 22 18:26 libhprof.dylib
-rw-rw-r-- 1 root wheel 142392 Dec 22 18:26 libinstrument.dylib
-rw-rw-r-- 1 root wheel 41124 Dec 22 18:26 libj2gss.dylib
-rw-rw-r-- 1 root wheel 15092 Dec 22 18:26 libj2pcsc.dylib
-rw-rw-r-- 1 root wheel 70692 Dec 22 18:26 libj2pkcs11.dylib
-rw-rw-r-- 1 root wheel 8852 Dec 22 18:26 libjaas_unix.dylib
-rw-rw-r-- 1 root wheel 216684 Dec 22 18:26 libjava.dylib
-rw-rw-r-- 1 root wheel 28896 Dec 22 18:26 libjava_crw_demo.dylib
-rwxrwxr-x 1 root wheel 38524 Dec 22 16:03 libjavafx_font.dylib
-rwxrwxr-x 1 root wheel 776700 Dec 22 16:03 libjavafx_font_t2k.dylib
-rwxrwxr-x 1 root wheel 250956 Dec 22 16:03 libjavafx_iio.dylib
-rw-rw-r-- 1 root wheel 8652 Dec 22 18:26 libjawt.dylib
-rw-rw-r-- 1 root wheel 304248 Dec 22 18:26 libjdwp.dylib
-rw-rw-r-- 1 root wheel 25328 Dec 22 18:26 libjfr.dylib
-rw-rw-r-- 1 root wheel 240840 Dec 22 16:03 libjfxmedia.dylib
-rwxrwxr-x 1 root wheel 214088 Dec 22 16:03 libjfxmedia_avf.dylib
-rwxrwxr-x 1 root wheel 53104 Dec 22 16:03 libjfxmedia_qtkit.dylib
-rw-rw-r-- 1 root wheel 38159152 Dec 22 16:03 libjfxwebkit.dylib
-rw-rw-r-- 1 root wheel 180468 Dec 22 18:26 libjpeg.dylib
-rw-rw-r-- 1 root wheel 14628 Dec 22 18:26 libjsdt.dylib
-rw-rw-r-- 1 root wheel 15744 Dec 22 18:26 libjsig.dylib
-rw-rw-r-- 1 root wheel 74872 Dec 22 18:26 libjsound.dylib
-rw-rw-r-- 1 root wheel 374428 Dec 22 18:26 libkcms.dylib
-rwxrwxr-x 1 root wheel 333072 Dec 22 18:26 liblcms.dylib
-rw-rw-r-- 1 root wheel 53576 Dec 22 18:26 libmanagement.dylib
-rw-rw-r-- 1 root wheel 834796 Dec 22 18:26 libmlib_image.dylib
-rw-rw-r-- 1 root wheel 90964 Dec 22 18:26 libnet.dylib
-rw-rw-r-- 1 root wheel 61444 Dec 22 18:26 libnio.dylib
-rw-rw-r-- 1 root wheel 198936 Dec 22 18:28 libnpjp2.dylib
-rw-rw-r-- 1 root wheel 15684 Dec 22 18:26 libnpt.dylib
-rw-rw-r-- 1 root wheel 55364 Dec 22 18:26 libosx.dylib
-rw-rw-r-- 1 root wheel 110948 Dec 22 18:26 libosxapp.dylib
-rw-rw-r-- 1 root wheel 14424 Dec 22 18:26 libosxkrb5.dylib
-rw-rw-r-- 1 root wheel 36068 Dec 22 18:26 libosxui.dylib
-rwxrwxr-x 1 root wheel 54732 Dec 22 16:03 libprism_common.dylib
-rwxrwxr-x 1 root wheel 62236 Dec 22 16:03 libprism_es2.dylib
-rwxrwxr-x 1 root wheel 67968 Dec 22 16:03 libprism_sw.dylib
-rwxrwxr-x 1 root wheel 10104 Dec 22 18:26 libresource.dylib
-rw-rw-r-- 1 root wheel 77036 Dec 22 18:26 libsaproc.dylib
-rw-rw-r-- 1 root wheel 348848 Dec 22 18:26 libsplashscreen.dylib
-rw-rw-r-- 1 root wheel 161704 Dec 22 18:26 libsunec.dylib
-rw-rw-r-- 1 root wheel 310336 Dec 22 18:26 libt2k.dylib
-rw-rw-r-- 1 root wheel 102100 Dec 22 18:26 libunpack.dylib
-rw-rw-r-- 1 root wheel 49472 Dec 22 18:26 libverify.dylib
-rw-rw-r-- 1 root wheel 36600 Dec 22 18:26 libzip.dylib
-rw-rw-r-- 1 root wheel 2455 Dec 22 18:26 logging.properties
drwxrwxr-x 6 root wheel 204 Feb 1 22:02 management
-rw-rw-r-- 1 root wheel 381 Dec 22 18:26 management-agent.jar
-rw-rw-r-- 1 root wheel 2107 Dec 22 18:26 meta-index
-rw-rw-r-- 1 root wheel 3070 Dec 22 18:26 net.properties
drwxrwxr-x 5 root wheel 170 Feb 1 22:02 nibs
-rw-rw-r-- 1 root wheel 944069 Dec 22 18:28 plugin.jar
-rw-rw-r-- 1 root wheel 2796 Dec 22 18:26 psfont.properties.ja
-rw-rw-r-- 1 root wheel 10393 Dec 22 18:26 psfontj2d.properties
-rw-rw-r-- 1 root wheel 3502025 Dec 22 18:26 resources.jar
-rw-rw-r-- 1 root wheel 66604445 Dec 22 18:26 rt.jar
drwxrwxr-x 11 root wheel 374 Feb 1 22:02 security
drwxrwxr-x 5 root wheel 170 Feb 1 22:02 server
drwxrwxr-x 3 root wheel 102 Feb 1 22:02 shortcuts
-rw-rw-r-- 1 root wheel 1210 Dec 22 18:26 sound.properties
-rw-rw-r-- 1 root wheel 102332 Dec 22 18:26 tzdb.dat
I copied the file to IntelliJ/jre, still no luck.
$ ll /Applications/IntelliJ\ IDEA\ 15\ CE.app/Contents/jre/jdk/Contents/MacOS/
total 552
-rw-r--r-- 1 root admin 216684 May 21 18:22 libjava.dylib
-rwxr-xr-x# 1 root admin 61704 Jan 5 22:29 libjli.dylib
I'd the exact same issue but with another version of the application being launched.
When you launch applications such as IntelliJ, Eclipse, etc, they wont use the environment variables even though you set them to something specific. so setting JAVA_HOME to one particular version doesn't help at all.
You need to check what is the default version of Java on MacOS.
You can check that using the following:
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (5):
11.0.1, x86_64: "... 11.0.1" /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
9.0.4, x86_64: "Java SE 9.0.4" /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
1.8.0_162, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
1.8.0_152, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home
1.8.0_144, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
The last line points to the default version of Java.
So for me, this was pointing to JDK 11.
Starting from Jdk9 onwards, the location of libjava.dylib is under /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/libjava.dylib.
Also this seems to be broken for JDK-12
Since this was not working for the default version of Java, I disabled both JDK 9 and 11 so that the default version is JDK8.
This can be done by renaming the Info.plist to Info.plist.disabled in <jdk_version>/Contents directory.
sudo mv /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Info.plist /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Info.plist.disabled
sudo mv /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Info.plist /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Info.plist.disabled
Ran /usr/libexec/java_home -V again which now points to jdk1.8.0_162.
The Application is now launching fine.
libjava.dylib is in the jre's lib directory. On my machine, it installed into (I have build 92 installed):
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/libjava.dylib
In your case, files in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/ is not going to make any difference. Intellij does not run as an applet -- that directory is only for the browser plugin used to run Java Applets.
In any case, you should consider downloading and reinstalling the latest build of the JDK from Oracle. If your install is missing libraries, other things may be messed up as well.
Upgrading my gradle to the latest version and setting JAVA_HOME and ANDROID_HOME properly worked for me.
here is my bash_profile:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Gradle Version that worked for me was 6.0.1
maybe you can kill intellij process and restart it
I'm interested in forking gnu.mail.providers.nntp.NNTPFolder, with the Javadoc documentation here, but don't quite understand the dependencies. Apparently, these are:
The current stable release of GNU JavaMail is version 1.1.2, available
here.
You also need the current versions of GNU JAF and GNU inetlib to build
it.
http://www.gnu.org/software/classpathx/javamail/
What, exactly, do I need to download to build gnu.mail.providers? I can certainly check out the code easily enough, but I don't relish compiling a large chunk of the API. (Yes, it shouldn't be necessary to compile most classes more than once.)
1.) What JAR's do I need to download?
2.) How much of the source code do I need to checkout?
3.) I can check it into github right away, because the licensing boilerplate is in the code?
Here are the JAR's:
thufir#dur:~/NetBeansProjects/gnu_cvs/dist$
thufir#dur:~/NetBeansProjects/gnu_cvs/dist$ ll lib/
total 416
drwxrwxr-x 2 thufir thufir 4096 Feb 22 21:16 ./
drwxrwxr-x 6 thufir thufir 4096 Feb 22 21:16 ../
-rw-rw-r-- 1 thufir thufir 33542 Feb 22 21:16 activation.jar
-rw-rw-r-- 1 thufir thufir 180559 Feb 22 21:16 gnumail.jar
-rw-rw-r-- 1 thufir thufir 194251 Feb 22 21:16 inetlib.jar
thufir#dur:~/NetBeansProjects/gnu_cvs/dist$
thufir#dur:~/NetBeansProjects/gnu_cvs/dist$ ll
total 608
drwxrwxr-x 6 thufir thufir 4096 Feb 22 21:16 ./
drwxrwxr-x 5 thufir thufir 4096 Feb 22 21:36 ../
drwxrwxr-x 3 thufir thufir 4096 Feb 22 21:16 gnu/
-rw-rw-r-- 1 thufir thufir 593467 Feb 22 21:16 gnu_cvs.jar
drwxrwxr-x 3 thufir thufir 4096 Feb 22 21:16 javax/
drwxrwxr-x 2 thufir thufir 4096 Feb 22 21:16 lib/
drwxrwxr-x 2 thufir thufir 4096 Feb 22 21:16 META-INF/
-rw-rw-r-- 1 thufir thufir 1322 Feb 22 21:16 README.TXT
thufir#dur:~/NetBeansProjects/gnu_cvs/dist$
Whether it runs correctly remains to be seen. I suppose it has to be build to compile as gnumail-providers.jar but otherwise seems, at first glance, to work fine. I checked out the code as per:
Alternatively you can retrieve the current sources via CVS here,
module mail.
http://www.gnu.org/software/classpathx/javamail/