rsense icon indicating copy to clipboard operation
rsense copied to clipboard

RSENSE_HOME setting

Open kwerle opened this issue 15 years ago • 5 comments

Let us set RSENSE_HOME in the bundle configuration.

kwerle avatar Jul 19 '10 21:07 kwerle

When trying to use rsense: Exception in thread "main" java.lang.NoClassDefFoundError: org/cx4a/rsense/Main Caused by: java.lang.ClassNotFoundException: org.cx4a.rsense.Main

Probably because the .jar file is not loaded?

kwerle avatar Jul 19 '10 21:07 kwerle

See your issue above...

Samsinite avatar Jul 20 '10 02:07 Samsinite

I have the same problem on linux.

$ bin/rsense server start: /tmp/rsense-socket (27271) Exception in thread "main" java.lang.NoClassDefFoundError: org/cx4a/rsense/Main Caused by: java.lang.ClassNotFoundException: org.cx4a.rsense.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.cx4a.rsense.Main. Program will exit. singal: CHLD stop

fancyoung avatar Dec 16 '10 16:12 fancyoung

The rsense client server wrapper isn't used... The plugin instead runs through the java interface: "java -cp '.:#{RSense.path}/lib/rsense.jar:#{RSense.path}/lib/antlr-runtime-3.2.jar:#{RSense.path}/lib/jruby.jar' org.cx4a.rsense.Main script '--home=#{RSense.path}' --no-prompt --end-mark=END --config=#{File.dirname(FILE)}/../.rsense --progress=1" did you try saving a .rb test file then doing something like "test". then press ctrl+/?

Samsinite avatar Dec 17 '10 07:12 Samsinite

I have solve my problem. the edition I download doesn't have rsense.jar in lib folder.

fancyoung avatar Dec 18 '10 15:12 fancyoung