Install/run issue...

hi...
i'm new to java. i'm trying to install java (1.4.1) on a redhat linux (8.0) and trying to get the following test app to run... i'm getting an error when i try to run, so i don't know the actual cause of the error. i might have the java environmebt set incorrectly, or the test app may not be correctly written (it was on one of the java install sites that i was using as i was installing...)
i have JAVA_HOME as a environment var
i seem to have the "correct" dir structure for java on the system
i can do java -version.. and get version of the java environment
- can do javac .. and i get the list of attributes...
i have the following test app in a separate dir
import java.lang.reflect.Array;
class Test
public static void main( String argv[] )
System.out.println( "Arguments:" );
int i = 0;
while( i < Array.getLength(argv) )
System.out.println( argv[i] );
i++;
i can compile it with no apparent issues...
when i ->> java test q1 q2 q3
i get the following error..
Exception in thread "main" java.lang.NoClassDefFoundError: test
i can't seem to find a good explanation using google as to what this means, or what's causing it..
any help/assistance would be appreciated!
thanks
bruce
[email protected]

The 'import' statement is only used during compiling. You posted a run time error so it should have nothing to do with import.
The class you posted is named Test. The command you posted used test. Java is case sensitive.
If that isn't it, then it is probably a Classpath problem. Try going to the directory where the Test.class is located and using the commandjava -classpath . Test

Similar Messages

  • OSX Mountain Lion install / download issue. Help Please!

    I have attempted to download OSX ML 3 times now, each time the download completes, install runs then after restart there is no change. ML hasn't been installed. Anyone had the same issue? Any fix?

    The next time you download Mountain Lion, make a copy and move it out of your Applications folder. That will save downloading it again.
    What version of the OS are you currently running? If it is 10.7 try the below:
    https://discussions.apple.com/message/21111661#21111661
    If you look in your Applications Folder is the installer still there?
    If you hold down the option/alt ket during a restart, do you see a recovery volume?
    Are you getting any error messages?
    Try booting into the Safe Mode to install it.
    Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • Will my existing Photoshop Elements 8 install & run on my new Windows 7 Pro/32 bit?

    For several years I have been  running Photoshop Elements 8 on my XP  Pro/32 bit system.  I recently purchased a new PC with Windows 7 Pro/32 bit.  Can I successfully install & run this software on my new PC?

    It may, it may not. Officially anything before PSE 9 is not tested or certified on Win 7. It may work with the usual precautions like turning off UAC and other security stuff, running as admin and possibly compatibility modes, but there's no guarantees. You should generally expect that there will be issues one way or another, even if only minor annoyances...
    Mylenium

  • I want to sync my ipod with itunes but it says the ipod cannot be used because the required software is not installed. run the itunes installer to remove itunes, the reinstall itunes again. i have done as instructed few times but still persists.

    i want to sync my ipod with itunes but it says the ipod cannot be used because the required software is not installed. run the itunes installer to remove itunes, the reinstall itunes again. i have done as instructed few times but still persists.

    Success!
    By completely removing all reference to apple or iTunes/iPod/ Safari etc from my computer, it has at last installed.

  • Problem Installing/Running Ovi Maps Plugin

    Hi everyone,
    I seem to be having a small problem with Ovi Maps 3.0 which I'm hoping somoene can help with. Probably an obvious solution to my problem but I can't seem to get the Ovi Maps plugin to install/run.
    When I try to install nothing happens. I make sure to select accept the terms of reference but when I click the (green) Install the Free Plugin nothing happens.
    Would anyone have any ideas on why this is happening? Any suggestions would be appreciated.
    Thanks!

    You are using IE 8 ?
    Same here... and there are messages about that somewhere in an OVI-forum....Plugin can not install on IE8.
    There are workarrounds described.. one is to deinstall IE8 (so you will fall back to IE7), then install with IE7 and then reinstall IE8 again..... the other workarround is to modify registry and implement plugin manually.
    I decided to wait until there is a fix..... i'm not sure what the plugin will give to me..... i am a little bit disappointed about how OVI maps work on PC compared with other products......

  • Can i install/run  oracle 8i in win xp

    can i install/run oracle 8i in windows xp ?

    yes u can install ora 8i in win xp pro
    Windows XP Home Edition
    Oracle 8i is not certified on windows XP. Even if yes, it must be Windows XP Professional.
    You can install Oracle8i on windows XP Home Edition, try like this:
    1 - Copy your Oracle CD into hard disk in your
    machine. For example Copy from oracle8i CD into C:\Oracle\ ...
    2 - Search the two files named Symcjit.dll on the D drive (where you have copied Oracle8i. You can found them in (example):
    C:\Oracle\stage\Components\oracle.swd.jre\1.1.7.30\1
    \DataFiles\Expanded\jre\win32\bin\symcjit.dll
    3 - Rename this file (Example): symcjit_back.dll (make sure to find two files and rename them)
    4 - Execute the Oracle setup.exe from C:\Oracle\setup.exe
    =================================================================
    When Oracle 8i dies on the install or the installer hangs, here is the fix for this, make sure that you have Service Pack 2 installed.
    1. \JRE\1.3.1\ From Sun. (You can download java program at http://java.sun.com/products/jdk/1.1/jre/download-jre-windows.html)
    2. Install the java file.
    There is also a problem in the installation disk.
    3. Make a copy of the Oracle 8i disk on the local hard disk.
    4. Do a search for the two files called symcjit.dll and rename them for example: symcjit.old.
    5. Install Oracle from the win32 directory.
    ================================================================
    PLEASE NOTE THAT ORACLE DOESN'T SUPPORT THE USE OF THOSE PRODUCTS IN SOME WINDOWS, BUT HAVE AUTHORIZED THESE WORKAROUNDS FOR TESTING PURPOSES ONLY
    this is LEO answer
    jully abuan manuel
    sql*wizard,inc.
    philippines

  • Newbie: does ADF install/run with Eclipse instead of JDeveloper?

    Hi,
    Can ADF install/run with Eclipse instead of JDeveloper?
    Thx
    -Rob

    If you mean can you design ADF applications with Eclipse then yes, you can do that with Oracle Enterprise Pack for Eclipse. It isn't as full-featured as the JDeveloper experience, though.
    More info: http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html
    Tutorial: http://www.oracle.com/webfolder/technetwork/eclipse/adf/gettingStarted/Tutorial/ADFwithOEPE_1.html
    If you meant something else, please be more specific!
    - Joonas

  • I have a new MacBook Pro with Lion installed and I want to know if I can partition the HD so that I can install & run Snow Leopard OS 10.6.8?

    I have a new MacBook Pro with Lion installed and I want to know if I can partition the HD so that I can install & run Snow Leopard OS 10.6.8?

    Most likely won't run SL unless it's one that was released before Lion went public. Color SL gone from new Macs.
    27" i7 iMac 10.6.8 , Mac OS X (10.7.2), G4 450 MP 1.5 GB RAM w/(10.5.8/10.4.11/9.2.2)

  • After downloading Itunes I get the message this Ipod cannot be used because the required software is not installed.Run the itunes installer to remove Itunes then install Itunes again

    After downloading Itunes I get the message this Ipod cannot be used because the required software is not installed.Run the itunes installer to remove Itunes then install Itunes again

    Did you do what the message said?
    Also try using the Win 7/Vista link in the following:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP

  • I have iphoto previously installed. running  but when i have synced my iphone4 the iphoto app. cant be launched anymore. a black screen with the hourglass running till it quits automatically.  What should be the problem???o

    i have iphoto previously installed. running  but when i have synced my iphone4 the iphoto app. cant be launched anymore. a black screen with the hourglass running till it quits automatically.  What should be the problem???

    Try the two fixes below in order as needed:
    Fix #1
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your HD/User/Home/() Library/Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your HD/User/Home()/Library/Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot.
    Click to view full size
    OT

  • I have installed itunes but get massage coming up saying cannot be used because required software is not installed, run itunes installer to remove itunes, then install itunes again. I have done this but still not able to connect my iphone, ipad or ipod.

    I have installed itunes, but when connecting the iphone, ipad or ipod it states the following:-
    Connot be used because required software is not installed run itunes installer to
    remove itunes, then install itune again.
    I have done this on a number od times, but still having the same message coming up.
    Please can you help me.
    Kind regards
    Caroline Jones

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • Macbook 2ghz - Upgrade install, runs great

    My Macbook 2ghz (upgraded install), runs great. It's faster and the best thing is that it finds and connects to the wifi as quick as you can open safari. My G5's are getting there now, but they had clean installs.
    Love the screen share it's much faster than ARD. I also like the way you can have a little fun a remote screen a mac and that mac remote screen you, in an endless mirror effect. Link:
    http://screencast.com/t/QCyoYt0yUF
    It's been a whole weekend of installs so far and it's not over yet.

    Very sorry to be the bearer of bad news, but Processor Name would have to be Core 2 Duo for it to be able to use 802.11n
    Core Duo machines do not have 802.11n compatible cards.
    It is possible to upgrade them though.
    Sorry and best of luck.

  • How can I install/run flash 11.5 on my intel imac running os x 10.4.11?

    How can I install/run flash 11.5 on my intel imac running os x 10.4.11?

    Welcome to Apple Support Communities
    The latest Flash Player version for 10.4.11 is Flash Player 10.1. Newer Flash versions require Mac OS X Snow Leopard or newer.

  • Can I install/run FCP 7 and/or adobe CS4/5/6 on apple mac mini MD388HN-A as it has INtel HD 4000 Graphics?

    Can I install/run FCP 7 and/or adobe CS4/5/6 on apple mac mini MD388HN-A as it has INtel HD 4000 Graphics?

    If you want to run Adobe apps, make sure you have the maximum RAM and plenty of available hard disk space. Given the typical internal drive sizes of the Mini, this would mean investing in one or two large external drives. Photoshop and InDesign only work well if there is a very large chunk of space available as a scratch disk. Some recommend dedicating a drive just for scratch space, if you are working with large, complex Photoshop files or large InDesign projects.

  • Will upgrading to Lion effect the way any of the software I have  already installed runs??

    will upgrading to Lion effect the way any of the software I have  already installed runs??

    If it's not compatible with Lion yes - http://roaringapps.com/apps:table

Maybe you are looking for

  • Background job Problem

    Hi, I scheduled a Program for background job running for every 10 minutes. When i go to SM37  I am seeing all the background jobs, it is creating a newline for every 10 min in the list. my problem is , Is there any settings to change for showing only

  • If HP DV6-7204se motherboard with GT630 DDR3 GPU could be replaced with GT650 DDR5 one.

    I've recently bought my HP DV6-7204se laptop from the shop a couple of weeks ago.  But since the last week, my laptop has been giving quite some annoying problems. Like the headphones jack wouldn't work, (but the speakers would) even after enabling c

  • FCE 4 and 4.0.1 compatibility issue:

    FCE 4 and 4.0.1 compatibility issue: While using Final Cut Express 4.0.1 on one machine I save (saves as .fcp) and now when I try to open the same file to continue editing, on a machine running Yosemite, and FCE 4 it gives an error message saying "Th

  • Is it possible to manage the servers with RSAT in a different domain?

    Hi All, In our infrastructure, all the servers are in the domain A. But as per the organization policy, laptops are only allowed to join domain B, not allowed to join domain A. Is there a way to manage the domain A services (DC/DNS/DHCP/etc) with RSA

  • Jndi.properties location in EAR

    Hello, in a environment of Tomcat+APACHE as webserver and OC4J as a backend server, putting jndi.properties in WEB-INF/classes will do the job, BUT if we use the OHS as the webserver, I am not succeeding to let the webapp view the sessions even after