Bug 1277 : System Crash Caused By Script Pointing To processing Script
Last modified: 2009-06-17 03:16




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Oxaric
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-06-13 03:52
I downloaded Processing 1.0.5 and extracted it to my home directory. I
created the script:

---
#!/bin/sh
# filename 'processing'

cd /home/oxaric/processing-1.0.5/
processing
---

I placed this script in /usr/bin/. When I attempt to call this script my
system slows to a halt and if I cannot kill the process in time it will
lock up my system forcing a reboot. The Processing program is never opened
properly before my system locks.

I am running Xubuntu 9.04 and have installed the JDE.

If you want to know anything feel free to e-mail me.
Additional Comment #1 From fry 2009-06-13 12:32
if you go to the directory from the terminal, and type ./processing, does
that work?

have you installed java properly as per the Linux instructions in the
reference?
Additional Comment #2 From Oxaric 2009-06-16 21:48
Sorry for the late response!

If I cd to the Processing directory I can execute the executable script
'processing' with no problems. However, if I call it from outside of only
that directory I guess some processes are eating up all the system
resources and cause a forced reboot.

I have installed java in a normal way using synaptic package manager. I
did not read or use the specific Processing instructions on how to install
Java.


(In reply to comment #1)
>
>
>
> Additional Comment #1 From
> fry
> 2009-06-13 12:32
>
> <!--
> addReplyLink(1); //-->[reply]
>
>
>
>
> if you go to the directory from the terminal, and type
./processing, does
> that work?
>
> have you installed java properly as per the Linux instructions in the
> reference?
>
>

Additional Comment #3 From fry 2009-06-17 03:08
then there's something wrong with your script, not processing.

at a minimum, i'd try changing the script to:
cd /home/oxaric/processing-1.0.5/ && ./processing
Additional Comment #4 From Oxaric 2009-06-17 03:16
No. Nothing is wrong with my script. It only does two things. Changes
the directory to the processing directory and executes the script.

When I try to run processing in any directory besides it's home directory I
get this error message:

"Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base
Caused by: java.lang.ClassNotFoundException: processing.app.Base
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:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: processing.app.Base. Program will exit.
"


(In reply to comment #3)
>
>
>
> Additional Comment #3 From
>
> fry
> 2009-06-17 03:08
>
> <!--
> addReplyLink(3); //-->[reply]
>
>
>
>
> then there's something wrong with your script, not processing.
>
> at a minimum, i'd try changing the script to:
> cd /home/oxaric/processing-1.0.5/ && ./processing
>
>