[SOLVED!!!]Need help getting internet cafe software to execute...

Already submitted to AUR: https://aur.archlinux.org/packages.php?ID=56282
I'm building a PKGBUID for a program called Cafe Pilot.  I'm using it for the computer lab in my shop and could use some help getting it to execute properly.  I'm pretty sure the PKGBUILD is good, because I can build and install just fine, but I get the error message below when I try to execute via CLI:
Caused by: java.lang.ClassNotFoundException: CafePilot_Server.jar
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: CafePilot_Server.jar. Program will exit.
not quite sure what this means... do I need to use JRE, or can i get away with openjdk on this?  ANY input would help... working on the companion client package, but wanted to get the server out of the way first so I can streamline the creation of the client's PKGBUILD...  Thanks in advance!
SOLUTION: editing of PKGBUILD and .sh file as posted below
https://bbs.archlinux.org/viewtopic.php … 4#p1051824
Last edited by CPUnltd (2012-02-02 23:42:05)

1. The usage of the -classpath switch is incorrect. Per manpage, you invoke it like "-classpath <somepath>". So when you call
java -classpath -jar CafePilot_Server.jar
java 6 will throw an "NoClassDefFoundError: CafePilot_Server/jar". That means, java failed to find the class "jar" in the package "CafePilot_Server", which is not exactly what you intended to do (in java packages are delimited by dots like com.mypackage.MyClass, which would go into a file hierarchy like ./com/mypackage/MyClass.class). java 7 will give you the more shorter message: "Could not find or load main class CafePilot_Server.jar"
So in short, the -classpath flag eats your -jar flag. The easiest way around this is, to omit "-classpath", which will result the classpath defaulting to the current directory, or to call "-classpath /opt/CafePilot_Server/".
2. About the '/usr/lib/jvm/java-6-openjdk/bin/java' part: Is there a specific reason to not call the "java" command directly? On a java 7 install:
$file `which java`
/usr/bin/java: symbolic link to `/usr/lib/jvm/java-7-openjdk/jre/bin/java'
And on a java 6 one:
$file `which java`
/usr/bin/java: symbolic link to `/usr/lib/jvm/java-6-openjdk/bin/java`
So i would promote one of the following options:
a)
#!/bin/bash
cd /opt/CafePilot_Server
java -jar CafePilot_Server.jar
b)
#!/bin/bash
java -classpath /opt/CafePilot_Server/ -jar /opt/CafePilot_Server/CafePilot_Server.jar
I do not really have an idea of what the program is supposed to do, but as far as i can see, b) has the advantage, that you do not need to call it as root, since the program will write some logs to the current directory. So when you call a) as a normal user, you will get an Permission denied error, because the programm could not write its derby.log to /opt/CafePilot_Server/, whereas for b) you could call it from your home directory, and you will get the log right there.
Both options assume, that the lib/ directory is installed as mentioned in my previous post.
Last edited by Wey (2012-02-02 22:37:39)

Similar Messages

  • Need help getting started -Editing software

    Hello everyone
    I need to get started with video editing on a Mac -
    I didn't touch an editing software since 1998 , it was premiere 4.2 on a PC !
    And didn't keep up with what's new but i'm now using a Mac!
    I assume now most software allow realtime rendering, and have great tools !
    So, I'd like to put together a holiday movie I shot on a DV camera-
    once finished , it would either play from the computer connected to a Video projector AND / OR burned on a DVD .
    I'd like to make something a bit creative : Split frames / moving Titles accross the screen etc...
    my questions :
    -If possible, I'd like to minimize the rendering process ( realtime?) What is a good editing software Imovie / Final cut ( which one?) / Premiere ?
    -What can I use to create split frame ( video)
    -What can I use to create moving titles ? ( important)
    -Can this be achievable on a Macbook 1,83GHZ / 2GB of RAM/ 250GB EXT. Harddrive FW.?
    Thanks for you inputs ( Open subject )
    David

    You don't need timecode to make frame accurate cuts.
    You simply play or drag the playhead to roughly where you want it and then use the left and right arrow keys to move frame by frame to the exact frame you want.
    Incidentally if you hold down the Shift key, each touch of the arrow key will jump 10 frames.
    iMovie has a tremendous amount of potential which may be hidden away at first sight.
    Take a look at those fantastic and easy to produce titles - the hardest part is typing the letters!
    Incidentally, even FCE does not display the original tape timecode natively.
    Ian.
    P.S. The best way to unlock most of its secrets is to get a book. Most good libraries usually stock them or can get them for you.
    Message was edited by: Ian R. Brown

  • Please, i need help getting internet on my phone.

    Okay, so I got a replacement and this one doesn't have a web browser option. I remember last time I had to download a file and add it manually by the blackberry software. Can someone please send me the file I need to download pretty please?

    Check and see if the Browser is installed. Go into Options | Advanced Options | Applications.
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Need Help Getting Internet Capabilities to iPhone

    Hi there, so my Moms phone went into Recovery Mode and I fixed that using TinyUmbrella. However, now the phone has no Internet at all, nor can she send any messages. I don't know about receiving but I doubt that would work either. If someone could help A.S.A.P that would be great. Thank you!

    Well thats because you've hacked the phone using Tiny Umbrella, it's against the forum term of use to provide help for hacked or jailbroken phones.
    Use google.

  • [SOLVED] Need Help With Internet On a Fresh Install

    Greetings-
    Can't connect to the internet on a fresh install guys. I've tried just about everything on the network configuration page...
    "lspci -v" returns:
    Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
    "dmesg | grep e1000e" returns:
    e1000e eth0:  Intel(R) PRO/1000 Network Controller
    So the module is e1000e on eth0
    I try loading the module with "modprobe e1000e"
    ...Still nothing
    dhcpcd eth0 not working either. That's about all I can think of.
    Oh, and last command I ran was "ip addr | sed '/^[0-9]/!d;s/: <.*$//'" which returned "1: lo"
    Any questions feel free to ask.
    Last edited by w201 (2013-01-25 05:00:56)

    A little elaboration on the above:
    A recent change in systemd means that during the boot process it will rename your ethernet device.  Doing "systemctl enable dhcpcd@anything" is hard-coded at this time to be "eth0" no matter what you put after the "@".  So, your dhcp client will not obtain an address.  However, if you omit the "@" the dhcp client will bind to available interfaces - which is what you want if all you have is a single wired connection and don't need esoteric configuration.
    The alternative is to set up a network rule:
    https://wiki.archlinux.org/index.php/Re … interfaces
    Providing the MAC address of your interface and the name you would like it to be.  Most likely "eth0" to bind to the above hard-coded systemd service enabler.

  • Need help getting photo/video software?

    I just got a Sony DSC-H55 camera.  With having a nicer camera now I want to do more with it.  My old camera I was very linited on what it could do.  This new one shoot at 1080P, has nice zoom, and 14mp.
    I am looking for some software that I can use for editing pictures and video.
    These are my laptop specs.
    [url]http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01555877&cc=us&dlc=en&lc=en&jumpid=re g_R1002_USEN[/url]
    Stink I can not afford to build nice systems right now.
    I go to a lot of car meets and do a lot of our door events.  That is what my camera is used for most.  When I shoot video it will be a lot at the track.
    I am thinking of either Roxio 2011, PhotoPlus X3/Movie Plus X3 Bundle, or Adobe Photoshop Elements 8 & Adobe Premiere Elements 8.  I just do not want to open the software and find out my laptop can not handle it.
    Adobe is first on my list.  I want to make sure my laptop can handle it.  I just wish I could find a trail verson.

    The PSE/PRE trials are right here:
    http://www.adobe.com/products/psprelements/
    Just click the link on the right side of the page.

  • Need help getting iBook online

    Hi I have a blueberry ibook with Mac OS 9 and I need help getting it online. I have cable internet on my home computer WOW, and I unplugged the internet cord from my home computer and plugged it into my laptop and could not get on the internet. How do I get on the internet with that cord if possible? I know nothing about Macs, or ethernet or proxy or any of that jargon. Thanks!

    Merry Christmas to you Kristen
    I do not have any disks or software
    for my ISP, just an access number.
    When you say "access number", what do you mean? When I hear the term "access number" I think of a phone number. Or is it an IP address (which would look something like 127.127.1.1 - a number with some dots in it), or something altogether different?
    Richard
    17 PowerBook, 466 iBook, Wallstreet G3, indigo iBook and now a Mini!   Mac OS X (10.4.2)  

  • I need help getting my os x mountain lion to work for my pro tools

    I need help getting my os x mountain lion to work for my pro tools

    Since you provide no details I can do nothing but guess, so perhaps this will help:
    http://avid.force.com/pkb/articles/en_US/how_to/Upgrading-to-Mac-OS-10-8?popup=t rue&NewLang=en&DocType=1080
    http://avid.force.com/pkb/articles/en_US/compatibility/Avid-Software-and-Mac-OS- X-10-8?popup=true&NewLang=en&DocType=1083
    If you continue to have problems, you probably should contact Avid support.
    Regards.

  • In installation process of Acrobat Professional 7 , its showing that Adobe Pdf printer is not Installed...need help to install the software completely

    In installation process of Acrobat Professional 7 , its showing that Adobe Pdf printer is not Installed...need help to install the software completely

    If it is Win 7 or later, the Adobe PDF printer for AA 7 will not install and AcroTray will not function. You will have to install a PS driver from Adobe or maybe an HP color PS printer driver. Then edit the driver properties and change the name to Adobe PDF and the port to FILE. You will always have to do an extra step in creating PDFs by opening the file that is created in Distiller to get the PDF.
    If you are talking about Win 8, you may not be successful at all. If you got Acrobat and Distiller to install, then there is a chance.

  • Need help getting cloud infofrom PC to new phone

    the wifi quit working on my 4s phone so i saved my info to the cloud on my PC. now I need help getting info from PC to new iphone 4s. thanks

    Problem solved. I just unplugged the machine and started over. I'll migrate my files at a later time.

  • TS1538 i need help because i need help getting my ipod touch to connect to windows vista and

    i need help getting my ipod touch to connect to windows because it keeps saying udb device not recognized and i tr\]ied restarting the settings!!!!!

    Have you tried here:
    iOS: Device not recognized in iTunes for Windows

  • I need help getting itunes on my new computer. old one crashed

    My old computer crashed, I downloaded iTunes on my new computer and need help getting all of my stuff on it that I had. I did 'home share' to see if that worked, and it didnt.
    Also, on my old computer, when I synced my iPad & my husbands iPod, it didnt sync any music or podcasts, no videos-and i went through each category seperately to sync it and it didnt work. So I can't sync my devices to the new iTunes bc not everything is on there that i have purchased.

    It has always been very basic to always maintain a backup copy of your comuter for just this occasion.  Use your backup copy to put everything on the new computer.
    If for some reason you have failed to maintain a backup, not good, then you can redownload some itunes purchases in some countries:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • TS4268 I need help getting my face time and imessage to work.

    I need help getting my face time and imessage to work. It is saying wating for activation. I just got my iphone 5 2 days ago. I have reset it from the phone and from itunes on the computer, made sure I'm attached to wifi.

    The 3 basic troubleshooting steps are these in order: 1. Restart your iphone  2.  Reset your settings/iphone  3.  Restore your iphone.  Since your iphone is only a couple of days old, you should backup your device before restoring.  If you don't have anything on your iphone that you care to lose, then simply restoring without a backup is fine.  A quick reset of pressing the sleep/wake button (top of iphone) and your home button simultaneously and holding it until the silver Apple logo appears. 

  • I need help getting my OS X Mavricks download to work and start downloading but it wont work

    i need help getting my OS X Mavricks download to work and start downloading but it wont work

    Contact http://www.apple.com/support/mac/app-store/contact/. They're responsible for getting this abysmal delivery system to work.

  • I need help getting my printer to work

    I need help getting my printer to work

    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Want-Good-Answers-Ask-Good-Questions/td...
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

Maybe you are looking for

  • I can,t install iTunes 11 for Windows   application failes to start because MSVCR80.dell was not found Windows 7

    I cant install itunes 11 for Windows 7, application fails because MSVCR80.dill is missing from my computer

  • Xml data source in db column?

    Hi everybody If I want to use XML data as data source for BI Publisher, can these data be stored in a database column or do I have to store the source data in XML files in a file system? If it can be stored in a db column - is there anything I need t

  • String Array Constant Addition

    Is there an elegant way of marking the last element in a string array constant? i.e. I take an Array constant, and add a simple string to it, so that it becomes a String Array Constant. Now I add elements 1 and 2 and 3. But now I want to take element

  • FXML loading custom component scene slow

    All we are creating a custom component to place into a TilePane each time a user clicks a button like so FXMLLoader loader = new FXMLLoader(resource.getURL());   Pane panel = (Pane)loader.load(); Scene scene = panel.getScene(); When we get panel.getS

  • Error - Planning function - BUdget retraction

    Hi Friends, need your help. while running process chain in BW, its giving the following error:"Errors occurred when executing planning function SPPF2300(Budget Retraction)/SPPG2300(Execute) " "I0809ACANCF01 : ( BP / 743 )   Overall budget less than c