Can't Import (or find) Swing

G'day
Any help would be appreciated. I've looked all over Sun's docs, tutorials, etc., and haven't been able to find the answer to this.
Environment:
O/S: Red Hat 9 Linux
Java : j2sdk1.4.2_03
A minimal dialog box application, which starts out like this:
import java.awt.*;
import javax.swing.*;
public class Dbox {
produces the following compiler error message
$ javac Dbox.java
Dbox.java:14: Can't find default package `javax.swing'. Check the CLASSPATH environment variable and the access to the archives
It can find java.awt just fine. It can't find javax.swing. Other stuff seems to work OK. The j2sdk installs in /usr/java/j2sdk1.4.2_03. I've run "jar tf" on all of the likely-looking jar files I can find there, and don't see
"swing" anywhere.
Thanks.

Here is one way that works, compile
OK ... after installing j2sdk1.4.2_03 on Red Hat 9, this seems to make things work:
First, link the new stuff into /usr/bin ...
cd /usr/bin
ln -s /usr/java/j2sdk1.4.2_03/bin/appletviewer appletviewer
ln -s /usr/java/j2sdk1.4.2_03/bin/extcheck extcheck
ln -s /usr/java/j2sdk1.4.2_03/bin/HtmlConverter HtmlConverter
ln -s /usr/java/j2sdk1.4.2_03/bin/idlj idlj
mv jar jar~
ln -s /usr/java/j2sdk1.4.2_03/bin/jar jar
ln -s /usr/java/j2sdk1.4.2_03/bin/jarsigner jarsigner
mv java java~
ln -s /usr/java/j2sdk1.4.2_03/bin/java java
ln -s /usr/java/j2sdk1.4.2_03/bin/javac javac
mv javac javac~
ln -s /usr/java/j2sdk1.4.2_03/bin/javac javac
ln -s /usr/java/j2sdk1.4.2_03/bin/javadoc javadoc
rm javah
ln -s /usr/java/j2sdk1.4.2_03/bin/javah javah
ln -s /usr/java/j2sdk1.4.2_03/bin/javap javap
ln -s /usr/java/j2sdk1.4.2_03/bin/java-rmi.cgi java-rmi.cgi
ln -s /usr/java/j2sdk1.4.2_03/bin/jdb jdb
ln -s /usr/java/j2sdk1.4.2_03/bin/keytool keytool
ln -s /usr/java/j2sdk1.4.2_03/bin/kinit kinit
ln -s /usr/java/j2sdk1.4.2_03/bin/klist klist
ln -s /usr/java/j2sdk1.4.2_03/bin/ktab ktab
ln -s /usr/java/j2sdk1.4.2_03/bin/native2ascii native2ascii
ln -s /usr/java/j2sdk1.4.2_03/bin/orbd orbd
ln -s /usr/java/j2sdk1.4.2_03/bin/policytool policytool
ln -s /usr/java/j2sdk1.4.2_03/bin/rmic rmic
mv rmic rmic~
ln -s /usr/java/j2sdk1.4.2_03/bin/rmic rmic
ln -s /usr/java/j2sdk1.4.2_03/bin/rmid rmid
ln -s /usr/java/j2sdk1.4.2_03/bin/rmiregistry rmiregistry
mv rmiregistry rmiregistry~
ln -s /usr/java/j2sdk1.4.2_03/bin/rmiregistry rmiregistry
ln -s /usr/java/j2sdk1.4.2_03/bin/serialver serialserver
ln -s /usr/java/j2sdk1.4.2_03/bin/servertool servertool
ln -s /usr/java/j2sdk1.4.2_03/bin/tnameserv tnameserv
Then set CLASSPATH; this can be done in /etc/profile, ~/.bashrc or explicitly:
export CLASSPATH=.:/usr/java/j2sdk1.4.2_03/lib/

Similar Messages

  • Events are gone, can't import from Finder.

    Mac OS X 10.7.4
    iCal 5.0.3(1605.3)
    Events for 2012 disappeared from on my mac calendars (5 calendars).  I can see the .ics events in ~/Library/Calendars but they will not import.  When I try to File/Import/Import... nothing happens.  When I double click on the event in finder it looks like the icon goes to iCal but it does not prompt me for the correct calendar and the event does not show up on any of the 5 calendars.
    It is not an issue with iCloud (I think).  I think it is a format issue with the .ics file, Sample:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//Apple Inc.//iCal 5.0.3//EN
    CALSCALE:GREGORIAN
    BEGIN:VEVENT
    CREATED:20120618T124858Z
    UID:722E48EA-B8A6-4CC8-859F-4F474E592CBB
    DTEND;VALUE=DATE:20120813
    TRANSP:TRANSPARENT
    SUMMARY:Cheer PIc Day
    DTSTART;VALUE=DATE:20120812
    DTSTAMP:20120618T124904Z
    X-APPLE-EWS-BUSYSTATUS:FREE
    SEQUENCE:2
    END:VEVENT
    END:VCALENDAR
    Thanks!
    Grayson

    I have the same problem with a different camera.
    I have used my Sony TRV27 Handycam in making movies primarily with iMovie 6.0.3 on my former G5. It did record from the camera to iMovie 7.1.4 on my Intel core 2 but now can't get in to import to either program 6.0.3 or 7.1.4. It will not recognize that the camera is attached or switch the camera icon to camera mode. If it does it only shows Built in iSight or Time Lapses.
    I prefer to use the older iMovie camera because of the options and familiarity of it. I do not care for the newer iMovie program format.
    I went to the system profiler as suggested and found firewire but have no idea what the Firewire Device Tree looks like nor did I see anything on the right except Firewire Bus speed.
    I have been using the cord from Sony in the past to import movies. My computer does not show the camera even though in Finder/Preferences connected services are checked to show up on the desk top.
    I phoned Apple Care today and got virtually no help. The gentleman kept saying it was the camera that was at fault. Or it was the ? slot in the computer that wasn't working. They both work. I checked. I see by posts a lot of other camera owners are having similar problems.

  • HT1338 My new mac mini can't find my Powershot S410 digital camera.  Therefore I can't import any photos from it to iCamera.  Can anyone help?

    My new mac mini can't find my Powershot S410 digital camera.  Therefore I can't import any photos from it to iCamera.  Can anyone help?

    My new mac mini can't find my Powershot S410 digital camera.  Therefore I can't import any photos from it to iCamera.  Can anyone help?

  • I can not import videos from my camera or open them... quits finder

    So i have a canon powershot SD300 and I can't import videos from it using I photo (the program quits)... so I used the camera software and when I go to click on it to show review, or try and open the video files (avi-quicktime) my finder quits! What's up with that? I have added an Xvid update so I could run Xvid files... I don't know if that would do anthing. Can anyone help?

    JordanFox,
    Welcome to the Apple Discussions.
    Your friend is correct; iPhoto 2 does not handle video files. You'll need at least iPhoto 5 to keep videos in your library. There is no other way to get it than to purchase a copy of iLife, either version 5 or version 6. Upgrades from one version to another cost money, updates within a version (ex; 6.0 to 6.0.6) are free downloads from Apple.
    Try using Image Capture (in your Applications folder) to upload the video clips to your Mac. You can manage them yourself in your Movies folder.
    Regards.

  • I have a MacAir with iMovie 10.0 and have lost several Facetime Clips that were imported through iMovie. Can anyone help me find them?

    I have been recording through import > Facetime days of painting a seascape.  I have been recording then working with short clips (5-30 minutes) that I then fast forward 200x... This is a big project with hours of video that have been condensed into about 5 minutes. When I went to review the playback, I discovered a missing few days worth of video clips in the middle of the project. the only thing that I did was show the project (just as a playback) to a friend (which I had done before but I had already drug down all the imported clips). I have searched the boards and not found a similar situation. Can anyone help me find them or are they lost forever?

    OK.... I just lost another several hours worth of clips.  iMovie "Quit unexpectedly". I believe this is when I lose my imported clips. Are they stored anywhere else?

  • I can't find photos imported from my iPhone 4 with "Image Capture" to iPhoto in my iPhoto anywhere... and they were deleted from the iPhone after import! Can anyone help me find the photos?

    I can't find photos imported from my iPhone 4 with "Image Capture" to iPhoto anywhere... and they were deleted from the iPhone after import! Can anyone help me find the photos?

    Do you know the date they were taken? Try search on that.
    Regards
    TD

  • Good morning to all of you I have A mac and I did the mistake of upgrading my Lightroom 5.4 to 5.6 Now I can't import anything it says "Could not find namespace: AgCreativeCloudUtils" Could anyone help me resolve this problem?  Should I uninstall the prog

    Good morning to all of you
    I have A mac and I did the mistake of upgrading my Lightroom 5.4 to 5.6 Now I can't import anything it says "Could not find namespace: AgCreativeCloudUtils"
    Could anyone help me resolve this problem?
    Should I uninstall the program and reinstall it
    Thank you so much

    I asked because an awful lot of people have recently been confused between downloading the Cloud and the perpetual versions of Lr - although I'm not automatically assuming your'e guilty of this - and can't understand why their serial no won't unlock their new software.
    If the wrong version has been installed, then it must be uninstalled and the right one downloaded.

  • How can I import my old Appleworks spreadsheets into Neo Office or Pages

    I am a new MBP owner and have some spreadsheets in Appleworks from my old iMac. I don't have Appleworks on my new MBP. I have downloaded Neo Office and could use it to create a new spreadsheet but can't import my previously created ones. Must I retype then? Or...as an alternative, I have iWorks. Can I import them into Pages? How? Thanks for any help.

    The above suggestion didn't work for me. However, I did find this site that helped me--and it might help someone else:
    http://neowiki.neooffice.org/index.php/OpeningAppleWorksdocuments
    It worked for spreadsheet--now I have to try to convert a data base document in Appleworks.

  • Can't import loops into LPX that import fine into Logic 9

    Hi all,
    I'm new to posting to the forum but have learned a great deal from browsing it over the last few years. I've got a question that I've scanned the forum for but can't seem to find an answer to. My problem is this: I've got loops that will import fine into the loop library in Logic 9 but absolutely will not show up in Logic Pro X (10.0.4). I'm running OSX 10.6.8 on a late 2013 MBP (15", 16GB RAM, 512SSD).
    These are loop collections that I've purchased from a couple of different reputable companies. Some are in .wav format, others .aiff. I've tried reindexing the loop library, editing the loops individually and as a group in ALU to make sure that they're listed as loops and have the proper collection and naming parameters (all do), etc... Nothing seems to be working. I just drag and drop the folder in LP9 and it works great, but when I try to do the same in LPX, nothing happens.
    I'm running my loops through an external harddrive (with an alias on a local folder pointing to the external hard drive), but even when I try to store loops locally it doesn't make a difference.
    Does anyone have any ideas/tips? Has anyone else heard of anything like this? For what it's worth, I have just shy of 40,000 loops in LPX (and nearly 50,000 in LP9)... not sure if there's a limit, but it wouldn't make sense that a previous version would allow more loops.
    Any advice would be greatly appreciated. Thanks!

    Logic Pro X is not compatible with 10.6.8 so how did you download/install it?
    LPX requires a minimum of 10.8.4 to download/install correctly.....
    This may be the cause of your issue......

  • How can I import data in to the digital word generator in Multisim?

    How can I import data in to the digital word generator in Multisim?
    I just  received this comment from a friend, a RADAR engineer, who has just down loaded Multisim.  He has been using HP/Agilent software.  He has a work around using a piecewise linear voltage waveform with data imported from Excel but this is not really a good solution.  It would also be helpful to import data from Mathcad or equivalent.
    "I thought I was about to be impressed with MultiSim but it ended only in disappointment. There is a word generator in the simulation instrument panel which can drive the DAC with a waveform and it can have thousands of lines of values. I opened Excel, wrote the formula to generate the time and voltage points for a chirp, converted to DAC values in Hex and then went back to the word generator in MultiSim to load the values only to find that you have to enter each value manually. It doesn’t even allow you to paste in a list of values from a text file. I’m not going to type 5000 values by hand. If you get the chance to give feedback to National Instruments please ask them if the paste option can be added to the word generator. MultiSim is useful in many regards, but in this case, it left me with the impression that it is considerably limited in capability compared to what I’m used to."

    Hi,
    You can load your data automatically in the Multisim word generator. Follow these steps:
    - Save your data file (in excel .xslx ir .csv format) on your computer
    - Change the extension of the file to ".dp"
    - Double-click the word generator in Multisim and click on Set...
    - In the Settings dialog box, click on Load and then Accept
    - This will prompt you to select the .dp file you have on your computer, select it and you're good to go
    However, in Multisim you have the option of creating your own custom simulation analysis and instrument.
    I will try creating the instrument and send it back to you but it might take some time.
    Multisim and LabVIEW are very powerful in test automation, with the custom instruments you create for Multisim you don't need to export your data file into excel from LabVIEW (or MathCAD or other tools) and then reload it into Multisim. The test procedure is automated instead.
    Please check this reference design about automated simulation
    http://zone.ni.com/devzone/cda/tut/p/id/7825
    Here is how you can create your own custom measurement tool in Multisim and LabVIEW, but as I mentioned, I will create the word generator and come back to you anyways
    http://zone.ni.com/devzone/cda/tut/p/id/5635
    Let me know if you have any questions.
    Mahmoud W
    National Instruments

  • Can't import songs from iTunes to my iPod

    I'm not sure if I have a problem with iTunes or my iPod, but I'll try this forum anyway. I already asked this under the iTunes category.
    Basically, there's a sudden problem where, for the life of me, my iPod will not accept new music. It shows up fine under "Devices" in iTunes and I can import music from a CD in iTunes (which is almost exclusively how I import music). I normally highlight the songs from my library I want to import and I drag them to my iPod icon under "Devices".
    I've tried moving the lock switch on and off, clicking the "sync" button, and looking up features in Preferences, but I can't seem to find what to do.
    Oh, and I also can't add album artwork to songs already on my iPod.

    Hello Organs,
    And welcome to Apple Discussions!
    Since it sounds like you are trying to manually manage your iPod's contents, make sure you have the *Manually manage music and videos* option enabled from under the iPod's Summary tab.
    Otherwise what happens when you do try to drag music over to it? Do you get a red circle with a line through it or anything at all?
    Oh, and I also can't add album artwork to songs already on my iPod.
    If you manually manage your iPod's contents, you'll need to manually remove these songs from under your iPod via iTunes and drag the new copy with the artwork back over to it. Yes, very tedious, but that's what manually syncing is all about.
    B-rock

  • HT1567 I can't import an audio cd to itunes to add to my library. I ran a diagnostics test and it had a red light next to: Unable to access audio cd. I am wondering if anyone else has had this problem and if there is an easy solution?

    I can't import an audio cd to itunes to add to my library. I ran a diagnostics test and it had a red light next to: Unable to access audio cd. I am wondering if anyone else has had this problem and if there is an easy solution?

    Satellite L675-S7113 Specifications (PSK3AU-07C02S)
    Satellite L675-S7113 Support Page
    rwls wrote:...since I got it 3 years ago I've been unable to burn an audio CD from ITunes or Windows media although it worked once after the computer had been shut off for awhile..and didn't find the problem until after my warranty had expired...
    From your statements above, it sounds like you never tried to burn a CD for at least the first year that you owned the laptop, as it had a one year warranty on it. While you might have used it frequently to install software,  play DVDs, Blu-Ray disks, etc, that's unclear from your statements. Nonetheless, it might just be dirty-dusty. So, before deleting-uninstalling any software, and given they're cheap, try a CD-DVD Cleaner Disk first and see if that resolves your problems.
    Let us know what happens. Good luck.
    Mike

  • (How can we) Import Flash Professional .FLA file format?

    How can we import a Flash Professional .fla file format into Flash Catalyst? It would appear that we can't...at least not yet! I have added this as a feature request within the adobe labs site for Catalyst. Someone at Adobe suggested that I also explore the forums, so here we are. If you would also like to have this feature added, please let Adobe know by promoting the
    idea.
    Our use case is this: we have a large Flash file with a library of over one thousand skins and assets that were built in Flash with Adobe's Flex Skins Templates. These stateful, graphical skins were used within a custom theme by several Flex 3 projects.
    Now that we are looking to migrate to FlashBuilder 4, and start to use Spark components, we are trying to find a workflow that allows us to use Adobe tools and to reuse our existing vector artwork. Since we have such a large number of assets, we are exploring various approaches, including the use of JSFL. So far we haven't found a good way to migrate from Flash-built skins for Flex 3 to Catalyst-built skins for FlashBuilder 4.

    Hi Ajay,
    See attached V 7.0 example...
    Hope it helps,
    Nick
    Attachments:
    Read_txt_File.vi ‏20 KB

  • How can I import an ibook file back into iBook Author?

    I exported an ebook from iBook Author thinking it is the equivalent of saving the file.
    I did not save the file, I only exported it and than exited the program.
    My active file is vannished.
    I need to make some adjustments to the ebook, but can not bring it back up.
    Is there a way that I can re-import the iBook file back into iBook Author?
    When I open iBook Author and try to open the exported file the program does not recognise the ibook file...
    Thanks for your help!

    Check for previous versions of that book in iBA....even if not saved.
    You can dig into the .ibooks file by changing the suffix to zip, but you'll have to manually extract what you can from assets you find. Please only do this with your own books.

  • Can I import an existing topic page into a new topic page?

    I'm working in RH HTML 9 and am working on a project where there will be at least 2 versions of help documentation. One version for basic functionality, to be used by a novice user and another for advanced functionality, to be used by a advanced user. The basic functionality needs to viewable by both the novice and the advanced users with the advanced user being able to find help on a few more windows/fields/options. The programmer asked if an existing topic can be imported to another topic. I am already using conditional tags to exclude certain topic from the novice user version. Another way I could do this is to provide a link from the advanced user page to the novice user page.
    Thank you,
    dpeterson8022

    Thank you Rick. Another question, if you have time-In my case the topic I am putting in the iframe is fairly lengthy, so I don't see any advantage to the iframe over just cutting and pasting the text. Is there a way an iframe can open in another browser window? In the alternative, I think I'll just use links so the advanced user can link to the novice user help topic, for the shared functionality.
    Thanks again,
    dpeterson8022

Maybe you are looking for

  • Opening, closing, pushing apps

    My phone has been going crazy for over a month now. It would open apps on its own and it push anything and everything. When I first contacted customer service, they directed me to LG's customer service so they could just replace my phone. I sent it i

  • How to handle error when in middle of processing of data, target DB goes down

    I have large amounts of data ( for e.g.- 1000 records). It is writing to a DB target table. At the middle of processing of 500 th record, target DB goes down. What will happen to the data after 500?? In which table will the data after 500 th record b

  • Original and New Motorola Bionic Comparison

    I was search through forums to identify what has been said about what changes has been released about the system changes made when Bionic was sent to cutting block and came across this information, I figured I would share this information.. NOW REMEM

  • Error using EXTERNAL PROCEDURES on UNIX

    I'm having troubles to run external procedures on UNIX. I'm following the extern.c example that comes by default. It works very well on my NT enviornment, but not on Unix. I compiled the share library on my solaris OS, and then I create the library,

  • Oracle .dmp to SQL Server 2005

    I am trying to import an Oracle .dmp database into SQL Server 2005, what would you suggest as the fastest and easiest way to do this?  DTS/SSIS doesn't have an instant solution and the script I tried to use gave me an error... Msg 3241, Level 16, Sta