You are not logged in.

#1 2009-11-11 05:01:20

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

[Solved] How do I add a PATH to a PKGBUILD?

I'm trying to add a binary PATH to a PKGBUILD and am not sure how to do this.  The only experience I've had with PATHs is through my bashrc so I'd like to learn how to do this so that it stay persisitent (i.e. through restarts logoffs and such).  The developers' site says:

[If t]he java executable isn't on your path. Either add Java's bin directory to your PATH, or set the environment variable JAVA_HOME (this should point to the directory above bin), e.g.:

export JAVA_HOME=/usr/lib/j2sdk1.6-sun

From what I know Java is already in my path (i.e. I can run 'java <application>' and it runs fine.

echo $JAVA_HOME
/usr/lib/jvm/java-6-openjdk

The program is supposed to be able to be run just by the command but is giving me:

GooTool requires Java 1.5 or 1.6. You have Java JAVA

Trying to run directly from java is giving me:

java /usr/bin/gootool
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd
Exception in thread "main" java.lang.NoClassDefFoundError: /usr/bin/gootool
Caused by: java.lang.ClassNotFoundException: .usr.bin.gootool
        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: /usr/bin/gootool. Program will exit.

So I'm guessing this is a problem with the path???  Or is there something else going on?

Last edited by Gen2ly (2009-11-11 07:48:12)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#2 2009-11-11 07:47:52

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [Solved] How do I add a PATH to a PKGBUILD?

Ah, I tracked this down.  It's an error in the detection script.

nm smile


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB