[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)

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

Similar Messages

  • [Solved] How to: Automatically add Semicolons at end of line

    Q. Is it possible to set JDeveloper to automatically add Semicolons to the end of a line of code?
    A. "While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon." [Solved] How to: Automatically add Semicolons at end of line
    Original Message:
    I'm spoiled from using Basic and similar programming languages, adding semicolons manually is something that'll take me time to get used to
    Thanks in advance,
    Abdulla
    Tags (for search engines):
    Jdeveloper automatic semicolon
    Message was edited by:
    Abdulla

    While there is nothing that does this in batch mode to all your lines, while you are writing a line you can press the CTRL+SHIFT+Enter (complete statement in the source menu) shortcut and it will complete your line for you including the semicolon.

  • [SOLVED] How Can I Add a Simple Volume Indicator to Panel?

    I've managed to get an XFCE de up and running and sound is working as well as keyboard shortcuts. I don't get any splash message to tell me the volume levels, neither do I have any indicator in the panel. How do I get any feedback on my current sound level without having to start the mixer?
    I've had a look around and I think I have mixer plugins installed, yet I don't have a suitable items to add in the "Add New Items" dialog.
    Xubuntu has and indicator, that would be good enough for me but I don't know how.
    I'd appreciate any help
    (The fact that I got this far without posting on the forums shows how amazing the Wiki is! Thanks for that and ArchLinux. It's so much fun)
    Last edited by hypertyper (2011-12-15 11:09:58)

    Thanks for the prompt replies.
    I had Mixer installed and when you told me it was the right app I played around with it some more and realised that I had to select the right sound card for the applet to show the volume. When I first added it the only functionality seemed to be that it opened mixer when I clicked on it.
    I tried volwheel as well, both work great. I guess it's personal preference from here.

  • (SOLVED) How to automagically add X number of line to new file in vim?

    Basicly I want to add X number of predefined lines of text to every new file I create in vim; if I create file.cpp I want some text, if I create file.sh I want another text.
    I'm sure this is do-able?
    Last edited by dmz (2009-07-07 17:51:41)

    Brilliant! Thanks.

  • How to Add another path to UTL_FILE_DIR in 9i

    Hi,
    How can we add another path to an existing UTL_FILE_DIR value in Oracle 9i?
    Can we do this Dynamically so that it doesn't require a DB bounce
    Thanks in Adv
    Srikanth Tirandas

    Hi 397779
    you can repeat that parameter in the parameter file several times.
    UTL_FILE_DIR
    Parameter type
    String
    Syntax
    UTL_FILE_DIR = pathname
    Default value
    There is no default value.
    Parameter class
    Static
    Range of values
    Any valid directory path
    UTL_FILE_DIR lets you specify one or more directories that Oracle should use for PL/SQL file I/O. If you are specifying multiple directories, you must repeat the UTL_FILE_DIR parameter for each directory on separate lines of the initialization parameter file.
    All users can read or write to all files specified by this parameter. Therefore all PL/SQL users must be trusted with the information in the directories specified by this parameter.
    Note:
    If you list multiple values, all entries of this parameter must be on contiguous lines of the parameter file. If you separate them with other parameters, Oracle will read only the last (contiguous) lines
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1221.htm#REFRN10230
    Joel Pèrez
    http//otn.oracle.com/experts

  • How can I add to an existing path using the pencil tool?

    This probably seems like a rather elementary question, but
    whenever I draw a path using the pencil tool, reselect it,
    hover over the endpoint, and the click and drag to extend
    the line off into a different direction, Illustrator will often
    (but not always) erase the existing path and leave only the
    new one that I drew.
    To wit:
    In step 1 above, I draw a line with the Pencil tool.
    In step 2 above, I reselect the line from step 1, hover over the endpoint, and then continue to draw further.
    However, as can be seen in step 3, the line from step 1 disappears after I draw the new path.
    I am aware of the pencil setting, "Edit selected paths", and I have checked it to edit selected paths
    within 12 pixels for the above example. What I am doing in the above example, and what I
    want to do, is to be able to add more paths onto an existing one using the pencil tool,
    rather than have a completely new path being drawn every time I lift up my pen to finish
    drawing the previous path.
    I also realize that I can do this with the pen tool; but the pen tool is a more
    precise tool (and somewhat more cumbersome), and I prefer to have more
    of the rough-handed look from time to time.
    Finally, I also know that I can use the direct selection tool to select endpoints
    from two different paths and then join them using the join command;
    but this seems to be more trouble than it's worth in many cases, especially
    if I want to do it frequently for a more long and complicated line.
    Am I expecting too much out of Illustrator?
    Is my idea of how to use the existing tools wrong in this case?
    Is there some piece of knowledge I'm missing?
    I'm on Illustrator CS5, Mac OS X 10.6.8, using a Wacom Intuos4 tablet.
    However, I have confirmed the above on Illustrator CS4 for Mac as well.
    Any help or comments would be much appreciated.
    Jeff

    Thanks @rcraighead - the Live Paint process seems a bit overkill for simply adding
    a new path onto an existing pencil path, but I did try the first idea you suggested,
    which was tracing a bit over the last part of the existing path and then continuing
    on to extend the path. It's a bit imprecise because the existing path gets slightly
    modified, but it seems to work pretty well all in all. Nice idea indeed - thanks a million.
    I also found that in AI CS5, I can use the selection tool to select all of the paths
    in this case and then join them using the join command. I thought I needed to
    select individual anchor points for this to work, but it actually works really
    well, better than I thought. I seem to recall that previous versions of Illustrator
    were a lot more picky with the Join command, but then again this might just
    have been my lack of understanding.
    I'm curious to know what other solutions to the above problem that other users
    might have, so I will leave this question unanswered for a bit...
    but I will use your initial technique described - it seems to work
    pretty well, in absence of other options Many thanks again for your timely help.
    Jeff

  • How to add simple path in exec command??

    Hello friends...want some help on "How to add simple path in exec command?"Because on linux each time username changes I will have to change username in exec command.Please help me.
    My code for java on linux is
    Runtime r4=Runtime.getRuntime();
                                       Process p4=null;
         //     "oofromtemplate" is command name for openoffice on linux                    //my username on linux is "sandy"     
                                       try
                                       p4=r4.exec("oofromtemplate /home/sandy/complete/Output.html");
                                       catch(Exception ae)
                                       System.out.println("error");
                                       }

    System properties yield among other things:
    user.name       User's account name
    user.home      User's home directory
    user.dir      User's current working directory

  • How do I add /usr/local/bin to path

    Hi.
    I have installed arch linux on a server.
    It seems really very good - manged to install latest snort-inline easily...
    However (and this is really a completely NOOB question)
    - how do I add /usr/local/bin to the default (root) path ?
    I have tried to add
    PATH=/usr/local/bin
    to /etc/enviornment
    But it did not show up when using the - env command (after re-logging in)
    I know that I could sym link to /usr/bin but i would like to know.
    Any help would be good
    Cheers
    Last edited by yossarianuk (2008-10-02 10:31:21)

    There's a place for all three of /usr/bin, /usr/local/bin, and ~/bin --- even on Arch.
    If you download package whizbang-1.2.3 from some non-Arch site, its installer will often by default try to install its files into the /usr/local hierarchy. When making a PKGBUILD, you want to tell it instead to install into $pkgdir/usr, so that when you install the resulting pkg file with pacman, it goes into the /usr hierarchy. That's what the wiki page is saying: pacman-managed stuff goes into the /usr hierarchy.
    /usr/local/* is for files you want to install systemwide without making a PKGBUILD. Your own scripts are a great example. Also you might want to install some compiled files that way, if making a PKGBUILD isn't worth it or you don't have the time to write (*and maintain!*) one.
    ~/bin is for scripts (could be compiled files too) that you want to only be available to that specific user.

  • How to i add an image path with spry data set

    hi
    how to i add an image path with spry data set. I made a xml file and then created a data set in html but image won't load
    this is my XML
    <?xml version="1.0" encoding="UTF-8"?>
    <banner width = "185" height = "400">
        <item>
            <image scr = "nui-panforte-recipe_01.jpg" ></image>
            <description>CHOC-COCONUT PANFORTE</description>      
            <text1>Try this delicious GLUTEN FREE Christmas treat</text1>
            <text2>CHOC-COCONUT PANFORTE</text2>
        </item>
    </banner>
    this is my HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("recipe_banner.xml", "banner/item");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <table>
        <tr spry:repeat="ds1">
          <td>{image}</td>
          <td>{description}</td>
          <td>{text1}</td>
          <td>{text2}</td>
          <td>{text3}</td>
          <td>{text4}</td>
          <td>{link}</td>
          <td>{url}</td>
          <td>{target}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>

    It would be helpfull if you actually created an <img> tag to start with
    <img src="{image/@src}" />
    would work.

  • How do you add the motion path of a tracking point to a separate clone stamp?

    How do you add the motion path of a tracking point to a clone stamp without the clone stamp assuming the same initial/continuous positions of the tracking point?
    Is there a way to keep the clone stamp's initial position and then add the path onto it?
    I am using the clone stamp to remove unwanted duct tape that was used to keep lights on a wall.

    I have spent two days trying to find a solution to this exact same problem. I have seen some overly complex solutions that probably work but trying to figure out the explanations is like trying to understand someone describe drag coefficients of rotary wing aircraft. While I am sure they work, they are way above my comprehension. I wanted an intuitive and straight forward solution for something that shouldn't require some arcane technique to fix.
    What I did:
    1) I used the Clone Stamp tool to paint over the spot on the wall I wanted to remove.
    2) picked a more easily discernible point of reference for Tracking. In my case, I used a poster on the wall.
    3) As per the instructions here, https://www.video2brain.com/en/lessons/removing-an-object-with-clone-stamp, I pasted the Attach Point data from the Tracker into Clone -> Transform - > Position 
    However, that didn't work for me as the object I was painting was not the object I was tracking. The solution from the video was simply moving my cloned spot to the tracked object instead of leaving it where I wanted it. So...
    4)  I then manually adjusted the Anchor Point of the Clone back to the original spot I wanted to cover.
    I played footage and the cloned region successfully moved with the spot I was covering.
    This is what I was able to figure out. I'm not an advanced user. I only use After Effects every couple of months when I need to fix minor things in footage, so I've only learned to use what techniques I need for the job at hand. No doubt, experienced users may shake their heads at my simplistic fix. I'm sure my technique would be wholly inadequate for situations far more complex than fixing spots on a gray wall, which is why my eyeballs cross when reading suggestions that seem way more involved than one would expect for something as seemingly minor as this. It's just a spot! It should be super easy to remove, right? Well, that's what I was looking for and that's what I came up with. I hope it helps.

  • How do I add an input source besides English in Gnome Shell? [SOLVED]

    Hello.
    I'm a bit confused as to how I should add additional languages/input sources in Gnome Shell. When I ran Gnome Shell in Ubuntu, I could add additional input sources via the Region & Language section of the Gnome control panel, but in Arch I've only got English (my locale is en_US.UTF-8). I'd like to be able to switch between English & Hebrew.
    Do I need to install an underlying gnome package for handling additional input sources? Or do I need to manually add a locale? The wiki seems unclear on this. Also, should I use localectl? I'm also a bit unsure there.
    Thanks!
    Last edited by yochaigal (2015-02-21 16:38:25)

    yochaigal wrote:Or do I need to manually add a locale?
    I think so.
    Edit the file at /etc/locale.gen and un-comment the desired locale then run:
    # locale-gen
    https://wiki.archlinux.org/index.php/Lo … ng_locales

  • [SOLVED] How to add files to iso file for Live USB ?

    I created a Live USB by dd command of the dual iso. Now I want to write a shell script to collect commands I need during installation process. Since dd command writes from sector to sector on the USB drive, it is not editable. How can I add my shell script to be available when booting by the arch Live USB ?
    Last edited by etrader (2013-03-10 05:24:17)

    jasonwryan wrote:Not an installation issue, moving to Newbie Corner...
    Sorry for inappropriate posting. This is an advanced customization, but I need a simple manual approach to add my shell script to the iso archive. Moreover, using archiso needs an arch host, but I hoped to be able to create the Live USB from within other linux distributions, as I do with dd command.

  • [SOLVED] How to add data toOutputStream ?

    <p>
    I have following code in managed bean:
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">OutputStream out = response.getOutputStream();
    response.setHeader("Content-Disposition", "attachment;filename=\"test.xml\"");
    response.setContentType("application/xml");</font>
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">........</font>
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">out.flush();
    out.close();
    ctx.responseComplete();</font>
    </p>
    <p>
    How can I add data (i get it from iterator) to OutputStream to send user xml file. ?
    </p>
    <p>
    Kuba
    </p>

    <p>
    Hi Steve,
    </p>
    <p>
    I found solution, I mean this:
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">ExternalContext ectx = ctx.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    OutputStream out = response.getOutputStream();
    response.setHeader(&quot;Content-Disposition&quot;, &quot;attachment;filename=\&quot;test.xfdf\&quot;&quot;);
    response.setContentType(&quot;vnd.adobe.xfdf&quot;);
        PrintWriter pw = new PrintWriter(out);
        pw.println(&quot;<font color="#ff0000"><em>ANY DATA HERE</em></font>&quot;);
        pw.close();
    out.flush();
    out.close();
    ctx.responseComplete();</font>
    </p>
    <p>
    Kuba
    </p>

  • [SOLVED] How to add dictionary in Claws-mail

    How do I add Norwegian to the Claws-mail spellchecking? Btw, English works fine.
    Last edited by alphahsk (2008-02-04 21:49:50)

    if you use aspell then add proper aspell-no (?) and it should appear in Preferences-Compose-Spell checking
    I found aspell-nb in AUR. Cheers

  • How to set java.library.path form code

    I'm new to JNI. I see there are several ways to set JVM to look for libraries dll, so, etc.
         System.setProperty("java.library.path", ".");
         System.loadLibrary("hello");That's when UnsatisfiedLinkError
    java.lang.UnsatisfiedLinkError: no hello in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
         at java.lang.System.loadLibrary(System.java:992)
         at HelloWorld.main(HelloWorld.java:17)But if I comment the line that sets the java.library.path and call the program with the command java -Djava.library.path=. HelloWorld works.
    The question is: Why is not working? How should it be the property setup? I rather don't set Variables, or use -D option.
    Thanks in advance.
    PD: If it helps I'm using JDK 1.5.0_01 on Linux kernel 2.6.8

    well i wrote the script and everything is fine! i can run the blackbox example on the commapi.
    But i am writing another program using netbeans to send some data to a PIC microcontroller using the serial port (that is why i installed the commapi), and when i'm trying to build it or run it on netbeans throws this error:
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
    Exception in thread "main" java.lang.UnsatisfiedLinkError: isDevLink
    at com.sun.comm.Unix.isDevLink(Native Method)
    at com.sun.comm.PathBundle.add(PathBundle.java:108)
    at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
    at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
    as far as i know it seems to be missing a library (LinuxSerialParallel), if this is right, adding the library would solve the error?how can i add the library? is there another way to solve this?
    thanks in advance!!

Maybe you are looking for

  • Help needed in prompt

    Hello, I would like to ask 2 questions on prompts in obiee11g. I have a dashboard prompt with 3 column prompt 1->How to allow third column prompt to take value depending upon the first 2 column prompt value. i.e. if i selct the value as A in the colu

  • My phone number is 00000000000, receiving no tap to pay link neither

    HI all, Dropped my S5 down the toilet, so bought a S6 edge to replace it. Did that, got a new sim (needed NFC and nano sized), but my number is showing up as 0000000000 in the status screen. I think this may be related to why i am not getting any lin

  • Help connecting new iPod Nano to iHome radio

    I got an iHome radio with a iPod Nano recharge station (and Nano played through radio's speakers). When I lost that, I got a new Nano, but the belt clip means I cannot push down so that the Nano's insie port connects with the iHome's outsie port. Is

  • PE Slideshow output closes at 42% with error message

    I created a slideshow in the Organizer this summer from my PE 7.0 and it worked great. Now, I'm trying to do a new slideshow and when I output the file whether to a disc or as a file, it stops at 42% with a Microsoft Error message that the program ha

  • Apple Script should transfer text into a numbers table.

    Hello together, at first i want to appologize my english. So at second i want to write an AppleScript, that starts with a display dialoge and ask me some things. Thats not the real problem i have started it so... tell application "Numbers"   activate