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
Related
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
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'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/
I have encounter the a FileNotFoundException exception occasionally when indexing, it's not occur every time. Anyone have some clue? Here is the traceback:
2012-10-14 11:37:28,105 ERROR core.SolrCore - java.io.FileNotFoundException: /home/admin/run/deploy/solr/core_p_shard2/data/index/_cwo.fnm (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:218)
at org.apache.lucene.store.NRTCachingDirectory.openInput(NRTCachingDirectory.java:232)
at org.apache.lucene.codecs.lucene40.Lucene40FieldInfosReader.read(Lucene40FieldInfosReader.java:47)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:101)
at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:55)
at org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:120)
at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:267)
at org.apache.lucene.index.IndexWriter.applyAllDeletes(IndexWriter.java:2928)
at org.apache.lucene.index.DocumentsWriter.applyAllDeletes(DocumentsWriter.java:180)
at org.apache.lucene.index.DocumentsWriter.postUpdate(DocumentsWriter.java:310)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:386)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1430)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:210)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:61)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:432)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:315)
at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:230)
at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:157)
at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:92)
at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1656)
at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:454)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:275)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Except above exception, there is a auto commit error, here is detail
2012-10-15 01:37:10,722 ERROR update.CommitTracker - auto commit error...:java.io.FileNotFoundException: _5.fdt
at org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:266)
at org.apache.lucene.store.NRTCachingDirectory.fileLength(NRTCachingDirectory.java:177)
at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:103)
at org.apache.lucene.index.IndexWriter.prepareFlushedSegment(IndexWriter.java:2126)
at org.apache.lucene.index.DocumentsWriter.publishFlushedSegment(DocumentsWriter.java:495)
at org.apache.lucene.index.DocumentsWriter.finishFlush(DocumentsWriter.java:474)
at org.apache.lucene.index.DocumentsWriterFlushQueue$SegmentFlushTicket.publish(DocumentsWriterFlushQueue.java:201)
at org.apache.lucene.index.DocumentsWriterFlushQueue.innerPurge(DocumentsWriterFlushQueue.java:119)
at org.apache.lucene.index.DocumentsWriterFlushQueue.tryPurge(DocumentsWriterFlushQueue.java:148)
at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:435)
at org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:551)
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:2657)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2793)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2773)
at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:531)
at org.apache.solr.update.CommitTracker.run(CommitTracker.java:214)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
And I have found that there lots of segment in index directory, and most of them is empty, like . totoal file number is 35314 in index directory.
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3n.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3o.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3o.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3p.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3p.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3q.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3q.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3r.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3r.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3s.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3s.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3t.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3t.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3u.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3u.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3v.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3v.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3w.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3w.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3x.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3x.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3y.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3y.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3z.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k3z.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k40.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k40.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k41.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k41.fdx
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k42.fdt
-rw-rw-r-- 1 admin systems 0 Oct 14 11:37 _k42.fdx