Run a program without JBuilder

Hi,
I have made a program that has 5 .java files (5 classes) and are all in a package. With JBuilder I can compile and run it correctly.
I want to run it with command prompt and to make a batch file as well.
In one file (first.java) I have the main class of course. I can not compile it
I have tried
javac -classpath ....  first.java and javac -classpath ....  package_name.first.javaHow all the files will be compiled as JBuilder does?
please help me. I know the question is very stupid but I can't solve this problem.
Thanks
Kostas

This is how I compile (engr_analyzer_2 is the name of my package)
C:\Documents and Settings\Kostas\Servlets & JSP\engr_analyzer_2> javac -cp ..;.;lucene-1.4.3.jar;lucene-demos-1.4.3.jar; Lucene_v4.javaNote: Lucene_v4.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details
And the message when I run the program is:
Exception in thread "main" java.lang.NoClassDefFoundError: Lucene_v4 (wrong name
: engr_analyzer_2/Lucene_v4)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
All the .class files are created.
In my first post I could't compile because I did a wrong in the classpath that I have fixed now.
I can not find those build features you told me.
Thank you very much
Kostas

Similar Messages

  • Run a program without command line

    Hello,
    I was wondering if there was a way to run a java program without compiling the code and giving the 'java' command at the command prompt.
    For example, I want to put my program on a cd with all the necessary components for it to run on any windows system, regardless of whether there is any java technology already on the machine.
    Thanks

    Batchfile, look it up on google, its pretty self explanatory. um, I'll try to explain the basics......
    Ok, to create your own batch file, open notepad and then save the file with .bat instead of .txt
    A batch File is a series of system commands, so, for example, if you wanted your batch to run a file located at c:\temp, the first line of your batch file should just have word.exe c:\temp\filenamehere.doc, for example, this is a line from a batchfile I made:
    excel.exe g:\tmp\Andy_Test.xls
    a batch file can contain many commands and they will all execute sequentially.
    if you want to open your program from a cd, I would think, although I have never done it, that you should
    make a batch file that reads something like:
    "D:\foldername\filename"
    or i guess you could simply do it on c drive like this if your java program was poop.java
    "c:\myfolder\myfolder2\myfolder3\java poop"
    you couild even compile it before you run it
    "c:\myfolder\myfolder2\myfolder3\javac poop.java"
    "c:\myfolder\myfolder2\myfolder3\java poop"
    also, if your java app is a GUI, I would run it like this:
    "c:\myfolder\myfolder2\myfolder3\javaw poop"
    Go here to learn more about batch programming, I actually don't know that much about it.
    http://www.computerhope.com/batch.htm

  • How to run c program without xcode

    i want to run my c program without using Xcode coz its a huge download,plz help me out I'm new to mac

    The Xcode install is worth the time and space (in my opinion).  To enable the command line tools you have to also install those:
    http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-l ine-tools
    The nice thing about using Xcode is that you will have the debugger and also be able to build executables for other platforms (cross compile) since Xcode allows you to use an external build system.
    Here is another option... there are websites that allow you to compile and run code on the server side (through a web interface):
    http://ideone.com/jwTjgN

  • Run labview program without necessity of labview license . is it possible?

    Hi
    I wonder is it possible to have a labview program that can be run without of necessity for labview license?
    now we can produce executable labview programs but they need labview licences.
    Best regards
    s Farashi
    Solved!
    Go to Solution.

    That does not make any sense. You have a license for the development system. You can create an exe and distribute as many copies as you want without further licenses. The only thing you have to distribute with the exe is the runtime engine. Where did you get the idea you needed a license for each exe?
    Message Edited by Dennis Knutson on 01-30-2010 12:11 PM

  • Terminal to run small program without sounds!!

    tell application "Terminal"
    do script "cd Mac
    cd Backup
    sudo ./backupstick
    " in the front window
    end tell
    end run
    this is my little script. it works nice. during it always makes sounds. bum bum...
    isn`t it possible to disable this sounds...
    or did I make a mistake in my program?

    Your script isn't making any sounds. The only way that script would make a sound would be if backupstick made them, and then you need to look at that app, not at your script for resolution.
    In any case, as written, your script is inherently dangerous. You make assumptions about the state of terminal.app that may not be true. You assume there's at least one window open, that the front window isn't doing anything (e.g. ssh'd into another machine, or running some other process), and that the current working directory of the front shell is where you want it to be.
    You would be better off not using terminal.app at all:
    do shell script "/path/to/backupstick" with administrator privileges

  • How can I run an external program without quitting Firefox?

    I want to run an external program from within Firefox, much as Outlook express is run from the email button. How do I set this up?
    Firefox doesn't import my Bookmarks from the listed html file. Any cure for this?

    I don't want to run the mail program, I want to run another program.
    Maxthon allows me to do this using External Tools. Does Firefox allow me to run other programs without leaving Firefox?
    2. Firefox allows me to load an html file which contains my bookmarks, but it doesn't load the bookmarks file. is there a solution?

  • Advanced question for running DOS programs on a Mac.

    So what is a simple process on a Windows machine seems to be a challege on my new Mac.
    In summary I have several hard drives laying around that need to be checked for problems before they are used. There are lots of free DOS programs available for PCs that do just that. Many are provided directly by the hard drive manufacturers themselves (ie Segate SeaTools) and they are fantastic. Macs unfortunately can't run DOS programs (without hacks like rEFInd) and none of the manufacturers provide Mac compatible software. Looking on the internet everyone points me to Disk Utility to check drives, but compaired to something like SeaTools, Disk Utility is useless. I found Micromats TechTool Pro 6 which comes close to what I need except its expensive and has lots of features I don't need.
    I want to avoid installing windows in bootcamp or a VM just to do this one simple task. Very frustrating that it seems like im the only one wanting to do this with a Mac.

    Did some more research and figured out these are my options:
    -Find a mac alternative (few out there, most very bacic, or very expensive)
    -use rEFInd (which is in beta, and modifies OSX)
    -bootcamp (which doesnt allow BIOS access to select a dvd DOS program, so doesnt help. Also, mac doesnt use legacy usb and keyboard drivers so you cant use keyboard/mouse in most DOS programs)
    -Vmware
    So to me my best option was to use Vmware. Installed on a USB hard drive to save space and configured VMware bios to boot from selected .iso of a disk and it worked. Successfully ran SeaTools and because VMware emulates legacy mouse/keyboard it worked.
    One problem though. SeaTools for DOS doesnt work from USB sata adapter, and considering its a macbook air im out of luck.

  • Air programs without having flash

    Can you run Air programs without having flash
    installed?

    If you're on Windows and are just looking to write a program
    with an HTML interface and Javascript for the application logic,
    Microsoft invented something much like AIR about 8 years ago called
    HTML Applications (
    http://msdn.microsoft.com/en-us/library/ms536496.aspx).
    It's basically a web page with one special tag at the top to set
    some application-like properties for the main window, named with a
    .hta suffix so Windows knows to open it with IE.
    The technology hasn't moved forward since the days of IE4,
    except of course that the base rendering engine has gotten a lot
    more powerful. You also lose out on cross-platform compatibility,
    and to get the single-file download-and-install behavior you get
    for free with AIR, you'll have to separately build some kind of
    installer, like an MSI. In an HTA, all of IE's security features
    are turned off, so you can do things like access COM objects to use
    more powerful APIs than a web app normally has access to. Through
    that interface, you can do all the same sorts of local file and DB
    access that AIR can do.
    Bottom line, you can think of HTAs as "AIR Lite for Windows".
    AIR is portable and, on the whole, a lot more powerful, but if you
    can tolerate its limits, it can be a good solution.

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • I have IE and Mozilla FF loaded on my vista run laptop. I have removed and reloaded the FF program without success. Internet Exployer runs fine. Help!!!!!!

    I have IE and Mozilla FF loaded on my vista run laptop. I have removed and reloaded the FF program without success. Once loaded I click the shortcut, but nothing happens. Internet Exployer runs fine. Help!!!!!!
    == 1 month ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Firewalls]] and http://kb.mozillazine.org/Firewalls
    See also http://kb.mozillazine.org/Browser_will_not_start_up

  • Is it possible to run the java program without main?

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    Ramya

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    RamyaWhy do you ask? It sounds like an odd question. Your program can be an applet and it doesn't need a main method in that case.
    Kaj

  • Why does it report missing *.dll when running standalone programs on a separate PC without LabVIEW?

    I wrote a LabVIEW code to control GPIB, DAQ and Serial port. Then I built an installer including runtime engine. Everything works fine at the PC with the LabVIEW. I copy this installer folder to another computer without LabVIEW. I had no problem to install the program. But after I run the program, it started to ask for nilvaiu.dll. After I copied it under C\Windows\System32\, it started to ask for nimdbgu.dll, then niorbu.dll. Then it reported "The procedure entry point_pkgModulePackageEventLog@20 could not be located in the dynamic link library NIPALU.dll"
    I guess it missed some drivers. So I installed NI-488.2 for Windows on the PC. But it did not solve the issue.

    hi there
    i recommend to update to DAQ 7.4. the performance is much better.
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Running Java Program on machine without JKD1.3 loaded

    I have written a Java progam that I want to run on a machine without installing the entire JDK1.3 package. What are the files that must be installed on a machine to run a Java program. We also do not want to run the program through a browser. Can anyone help???

    Thanks --- that was the exact information I needed. I wish I had some Duke dollars left, I would award you some. Well anyway thanks!!!

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • Run java programs on computers without a SDK

    Alright. So I wrote a java program on my computer. It has the SDK with JCreator and everything. However, I want to be able to run the program on my Laptop which doesnt have the SDK. It has Java installed yes, but no SDK. How would I run the program? I got the source code but its no use. I have the compilied .class files from my main computer but I have no clue how to run them on the laptop. Do I have ot install the SDK and compile the source code or is there a way to just run the program directly?
    Thanks!

    Basically you just make certain that the manifest file has a "Main-Class" attribute, which is the name of a class that has the main() method that you want to invoke when the use double-clicks the jar. It's remarkably simple.
    I've never used JCreator, but if it's an IDE for Java it probably has a way to create these automatically. In Eclipse, you use the "Export" menu item on the "File" menu; it may be something similar in JCreator.
    Otherwise, you can use the "jar" utility that's part of the SDK. Read the docs on that. The docs also have links to the jar format and manifest files.

Maybe you are looking for

  • Installing reader without Adobe Air

    We would like to distribute Adobe Reader without Adobe Air or Adobe.com. The command we use to remotely install Adobe Reader is "psexec @c:\tmp\systems.txt -u XXXUSERIDXXX-p XXXPASSWORDXXX -c -i \\apps\adobe\9.1.0\AdbeRdr910_en_US_Std.exe /sAll /rs /

  • Screen flashes instead of alert sound after 10.4.11 update

    After updating to 10.4.11 about 2 weeks ago I noticed that my screen flashes whenever an alert sound should occur. It looks just like the "Flash screen when an alert sound occurs" option found in the Universal Access (Hearing) settings. I toggled the

  • Incremental backup and recover with UNTIL SCN options.

    Hi there My question is just about internal RMAN mecanisms. Suppose i've cumulative method for backup with RMAN. Reference backup provided by Level 0 (by night) after that i've file001.arc, file002.arc during day Baclup cumulative Level 1 (by night)

  • Expense Report Import rejections with No Sequence Assignment

    Hi, I'm running the Expense Report Import programme and it keeps rejecting my data with the No Sequence Assignment error. I don't understand this error message, as there are no sequences to assign! Please help. Thanks Azar.

  • Assign task to user (via lookup) in SP Designer workflow

    I would appreciate advice on the best way to assign tasks to specified users via a workflow. For example, I would like to assign a task to the manager of each department, depending on various values checked in a workflow. The best solution I have com