New to java, having trouble with classes

I am new to java and I am having problems importing classes in my first program, please help

hi
please tell, what`s your problem exatly?

Similar Messages

  • New to java, having trouble with Installing JDK on Ubuntu

    Hello, everyone???
    I'm try to install j2se jdk-1_5_0_15-linux-i586-rpm.bin on my Ubuntu Linux 7.10, I ran the self-extract file and everything just seemed fine. But when I get to setting the system environment variable , something must have gone wrong. I have read from books which say that I should set 'CLASSPATH=.:/usr/java/jdk1.5.0_15/lib/dt.jar:/usr/java/jdk1.5.0_15/lib/tools.jar'. But I can't find a 'tools.jar' file in the 'lib' directory. There is a 'tools.pack' instead of it.
    When I try to test the installation with: 'javac --version', I got :
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    I don't know why. Do anybody can help me with this problem?

    I used the Synaptic version of Java. I don't like where it puts the JDK in a protected folder. I want development stuff in my home folder. The Sun download with the NetBeans is the best, IMHO. You put your install where you want it. NetBeans then slams the pathname with every javac and java you run. Works great for development. Then, becomes the FireFox problem -- the java plug-in. Because I'm AMD-64 I have to use the IceTea java plug-in.
    Would Sun please, please write the 64-bit plug-in?
    The last irritating problem you will have is running java from a Terminal. That takes internal links in your File System. You can do what NetBeans does: java -classpath=~home/desktop/jdk1.6.1/bin/myPrograms myProgram. Or, you can make SymLinks. I keep a bookmark to this topic from the Ubuntu Forums:
    [Custom Install JDK java|http://ubuntuforums.org/showthread.php?t=319138]

  • Downloaded new OS and having trouble with wifi, bluetooth Facebook and Skype performanc​e

    Dowloaded 10.2.1.537
    When I first loaded this it had a lot of trouble finding my Wifi again and would disengage.  Problem went away after a few hours but it recurred this am.  Also affected Facebook.
    Skype is loading more slowly and jumps to a black screen for 10-20 seconds.  Then it will load and function but only for a few seconds to a minute and then shuts off completely. 
    Launching Skype also resultd in my bluetooth headset being disengaged sometimes.
    Reinstalled Skype to see if that fixed anything. 
    Tried turning off bluetooth to see if that fixed the skype problem - nope still disengaged.
    Cycled my router and cable and still no fix...
    Running Z30
    Would love to get a fix on this.

    Hello,
    Given all of your issues, I'd guess that something did not go well with the update, and a clean reload would be in order. You accomplish that either through the LINK software or by obtaining an AutoLoader.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Having trouble with Class.forName & Class.newInstance

    i have a string name of a JPanel class i want to place on a TabbedPane. the JPanel class is in another package, that i import.
    i have been trying all kinds of ways to do this, and it is not working. does anyone have any ideas on how to do this?
    i need: myTabPane.addTab("financial calc", new myBzPanel());
    i tried: myTabPane.addTab("financial calc", Class.newInstance(Class.forName("myBzPanel()"));
    without any success.
    any ideas appreciated. thanks.

    The Class.newInstance() method does not take any arguement and you passed a wrong stuff to the Class.forName(String) method.
    Class c = Class.forName("mypackage.myBzPanel");
    myBzPanel bz = (myBzPanel)c.newInstance();
    myTabPane.addTab("financial calc", bz);

  • TS3274 my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the original one was not there.... some songs were in fact there but not clickable ( it was there only gray)..anyone kno

    my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the orignal one was not there.... some songs were in fact there but not clickable ( it was there only gray)... i was looking for help on how to get the music on the ipad

    my ipad is having trouble with my music... i had recently gotten a new one when i signed into my icloud the music that i had on the orignal one was not there.... some songs were in fact there but not clickable ( it was there only gray)... i was looking for help on how to get the music on the ipad

  • I am having trouble with my Mac Mini's ethernet connection.   Defining a new network interface shows no ethernet adaptor.  Reloading SL from DVD repaired.  But SL update lost ethernet again.  Will Lion Fix?

    I am having trouble with my mac mini ethernet.  It had been working for weeks after an update to SL 10.6.8.
    Once it went out and i repaired it by defining a new connection from System Preferences ->Network->(left panel service, +).
    But yesterday, after a power up.  my ethernet was not working again. I tried this old trick to repair it, but the interface choices
    listed for '+' a new service did not include Ethernet any more.  And the Utilities->System Profiler->Ethernet Cards shows
    no ethernet available.
    As a last ditch effort i reloaded my original SL from DVD.  (I think it was version 10.6.4 but i could be mistaken on the version).
    The ethernet worked!  But KeyNote wasn't going to work because apparently the version i purchased depends on 10.6.8.
    So I upgraded again to SL 10.6.8 (Plus some other updates like AirPort which i don't use).
    Now the Ethernet is not working again.  I see the same symptoms as before with the Ethernet seeming not installed.
    Is this a problem seen by others?
    Would going to Lion fix the problem?
    Could AirPort actually be the culprit and not SL?
    If i stay with my original SL, would i need to repurchase a version of KeyNote for the older version of SL?

    Have you reset the SMC?
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    While you're at it, resetting the PRAM won't hurt anything and 'might' help is SMC reset didn't work (PRAM does some port control):
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    Something else you might try .... you don't say how you're updating to 10.6.8, however, if you're using Software Update, you might try downloading the 10.6.8 combo update, which contains all updates to 10.6. Sometimes, Software Update doesn't work quite right, and installing the combo update fixes that. Download the update from Apple's download site at http://support.apple.com/downloads/ , using Disk Utility repair permissions, apply the combo update, then repair permissions again.

  • Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Just bought a new iPhone and am having trouble with iTunes and App Store. I can log in to Cloud, iTunes, and app store but once I try to download, it says "Youe apple id has been disabled". I've reset my password three times and have no issue on my Pad.

    Hi FuzzyDunlopIsMe,
    Welcome to the Support Communities!
    It's possible that resetting your password multiple times has triggered this security.  Click on the link below for assistance with your Apple ID Account:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Here is some additional information regarding your Apple ID:
    Apple ID: 'This Apple ID has been disabled for security reasons' alert appears
    http://support.apple.com/kb/ts2446
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Click on My Apple ID to access and edit your account.
    Cheers,
    - Judy

  • I have a new MacBook and I'm having trouble with the help section. I would like to rearrange the order of my photos with in an Event, how do I do this? I follow the directions but it will not work. Thanks for some tips.

    I have a new MacBook Pro and I'm having trouble with some of the Help sections. I want to rearrange the order of my photo's within an Event. I have followed the directions but it will not let me do it, what am I missing?  Thanks for any tips.

    Are you talking about iPhoto? If you are please post this in the iPhoto forum, thanks!

  • I recently added my old mac hard drive to a new macbook with an SSD as my main OSX drive.  I am having trouble with permissions in viewing my old hard drive.  What is the best way to get complete access to my old hd installed in my new Macbook?

    I recently added my old mac hard drive to a new macbook with an SSD as my main OSX drive. I am having trouble with permissions in viewing my old hard drive, when I save a permission when I reboot the full access is changed again .  What is the best way to get complete access to my old hd installed in my new Macbook?

    Open the Get Info window for the old drive. Click the Lock icon on the bottom of that window and type in your password. In the permissions area click the Plus sign ( + ) and Add your Username to it and set it to Read & Write. Close that window. you should now have full access to all the files.

  • I am having trouble with my bluetooth skipping while its playing music from my Itunes music...I thought that this was an antiquated problem with the new technology?

    I am having trouble with the music from my bluetooth "skipping" on my IPhone 5.  I thought that this was an antiquated problem with the new technology.  It's very frustrating to purchase all of this music and expect great sound and playability and get "skipping".  Any ideas on how to resolve this issue?

    Does the issue occur when listening to the media using the speaker or wired headphones?  If it does, the issue is with the media itself.
    If it does not, it's likely a bad connection or interference.

  • Since installing the new OS i am having troubles with different appliction icons showing up on my main page twice (upper left corner), and not allowng me to select certain ones (app store specifically).   Anyone else having this issue?

    Help - anyone else out there having trouble with the new OS system on their ipad 2?    I am not getting mutliple copies of several apps ont he main page.  They are "collecting: in a pike int he upper left corner and the original application icon is no lobger working.    I have tried a hard sync, and that didn't help.

    It should only be able to have one copy of an app on the iPad. Have you tried a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Do all the apps work ? In the past a few people have taken a screen shot of their iPad screen and that has then become their background picture - so some of the 'app's may actually be on your wallpaper picture and not actual apps. Have you tried changing the wallpaper to see if that makes any difference ?

  • I am having trouble with the initial connection. I have isolated the problem to the cable/ connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    I am having trouble with the initial connection of the apple tv. I have isolated the problem to the cable/connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    There are only two types of HDMI cables (standard and high speed - listen to all 1.2, 1.3 etc etc nonsense they will try to tell in the store) both types will work with the Apple TV.
    The cable may be faulty though, have you got another to try, what exactly is happening.

  • I just bought a new computer and im having trouble with transferring my purchased songs to my iphone please help

    im having trouble with tranferring my purchased songs to my iphone . The problem is that im using my house desktop windows computer because my laptop is broking and all my songs are mainly on that one . Right now im trying to see if i can tranfer my purchased songs from the desk top itunes to my iphone .Its not showing me options for my perdiciment please help!!.

    Plug it in and sync it.
    What is the issue?
    It will erase the current content and replace with content from the new computer.

  • Anyone having trouble with the new update for 2010 mac book air 10.8.2?

    Anyone having trouble with the new update for 2010 mac book air 10.8.2 ? My 2010 Macbook Air has crashed 15times since the 10.8.2 update. Have only once since owning it.

    Turned out the hardware was bad.  Apple exchanged it for a new Mac Air and the new trackpad works great.  Thank goodness it was a defect.  If the trackpads all worked like that I would have been bummed.

  • I`m having trouble with my new advanced system the mac os X 10.0.3

    Hello everybody...
    I need Help, I would appreciated anything anybody could do to help me...
    I`m trying to install the new software the mac os X 10.0.3 and having trouble transfering all my files form the mac os 9.2.2 classic to my new system...Do i have to erase my hard drive to do a clean install???? Could I transfer my files to my home`s computer, instead of buying a portable smartdisk hard drive of 100 Gb, and then so i could transfer my fiels back to my mac without no trouble ????
    I Hope anyone could answer to my post as soon as possible, Thanks

    Hi, John. If you weren't having trouble with Mac OS 10.0.3, it would be a major surprise. OS X 10.0.x and 10.1.x were unusable beta versions and never should have been released, in the view of most people who ever tried to run them. It would be a severe trial of your patience and a waste of your time to install 10.0.3 on your Mac.
    If you want to run OS X, buy OS X 10.2.x (Jaguar), 10.3.x (Panther) or the current version, 10.4 (Tiger). All are available at reasonable prices from AppleRescue. Tiger is also available from any Apple retailer. Carefully read the system requirements for whichever version you prefer, and be sure your computer meets them before buying. If your Powerbook only has a 10GB hard drive, install a larger one (at least 40GB is sensible, since the cost per gigabyte of smaller drives is now exorbitant compared with larger units) before bothering to install OS X.
    It would be most advisable to copy everything on your current hard drive to an external FireWire hard drive, then reformat and erase the internal drive before installing OS X on it. Doing so insures that your data is all safe and that your internal drive is in tip-top condition when the new OS is installed. After performing the installation, you can copy the contents of the external drive back onto the internal drive. The external drive will then be available as backup space for the entire contents of the internal drive, including OS X, all your applications, and all your data.
    While OS 9 is still installed on your hard drive, check to make sure your Powerbook's firmware is up to date. It will need to be brought up to date while running OS 9, before you install OS X 10.2 or higher. Here is the updater for your 500MHz Tibook:
    http://docs.info.apple.com/article.html?artnum=75132
    If the firmware has already been updated, running the updater again will tell you so and will do no harm.

Maybe you are looking for