Problem in putting the classpath

HI!
I have a serious problem!
I'm trying to create a connection using the antinav jdbc driver type 3 for WindowsXP and Access 2000.
I also have installed JDK1.4.2 version and I use JCreatorLE environment.
I followed the instructions of README.text but nothing works!
I'll tell you what I did and please reply to me for a solution!
First of all I run the Setup.exe contained in package AccessOnNT.zip
After that I run the InstallAtinavService program from the StartMenu and I started the Service.
I copied JdbcClasses.jar to a directory c:\AtinavDriver\classes\ and after that I went to ControlPanel-->System-->Environment and put as Variable=CLASSPATH and as a value=c:\AtinavDriver\classes\JdbcClasses.jar
I also put the classpath to JCreatorLE. I went to Configure-->Options-->JDK Profiles and I added the package c:\AtinavDriver\classes\JdbcClasses.jar
The code I wrote is the following:
import java.sql.*;
import java.util.*;
public class test{
public static void main(String[] arguments){
try{
Class.forName("acs.jdbc.Driver");
} catch(Exception eDriver) {
System.out.println("driver " +eDriver);
String url="jdbc:atinav:localhost:7227:c:\\databases\\my movies.mdb";
String username="Admin";
String password=" ";
try {
Connection conn=DriverManager.getConnection(url,username,password);
Statement st=conn.createStatement();
ResultSet rec=st.executeQuery("SELECT title,category"+"FROM my movies.mdb Contacts"+
"WHERE"+"ORDER BY title");
while (rec.next()) {
System.out.println(rec.getString("title")+"\n"+rec.getString("category"));
st.close();
}catch (Exception eConnection) {
System.out.println("Connection " + eConnection);
When I execute I get this message :
driver java.lang.ClassNotFoundException: acs.jdbc.Driver
Connection java.sql.SQLException: No suitable driver
Press any key to continue...
Please tell me what I did wrong as soon as posible!
Thank you!

Looks like your JCreator CLASSPATH is okay. If it wasn't, you would have gotten a ClassNotFoundException for the JDBC driver. Looks like you got past that.
Your exception says "Connection java.sql.SQLException: No suitable driver". That usually means that your database connection URL is incorrect.
String url="jdbc:atinav:localhost:7227:c:\\databases\\my movies.mdb";This does not look correct at all.
I'm unfamilar with this Antinav type III driver you're using. Why isn't the JDBC-ODBC bridge driver sufficient? Did you have to pay for this? What made you think it was necessary?
If you use the bridge driver, you can connect using this code:
import java.sql.*;
import java.util.*;
public class AccessConnection
    public static void main(String [] args)
        try
            AccessConnection ac = new AccessConnection();
            if (args.length > 0)
                ac.findMoviedByCategory(args[0]);
            else
                System.out.println("Usage: java AccessConnection <category>");
        catch (Exception e)
            e.printStackTrace();
    public void findAllMoviesByCategory(final String category) throws SQLException, ClassNotFoundException
        Connection conn = null;
        PreparedStatement st = null;
        ResultSet rs = null;
        try
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            String url      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\databases\\my movies.mdb";
            String username = "admin";
            String password =   "";
            conn        = DriverManager.getConnection(url,username,password);
            String sql  = "SELECT title,category FROM movies WHERE category = ? ORDER BY title";
            st          = conn.prepareStatement(sql);
            st.setString(1, category);
            rs = st.executeQuery();
            while (rs.next())
                System.out.println(rs.getString("title") + " " + rs.getString("category"));
        finally
            try { if (rs != null) rs.close(); } catch (SQLException ignore) {}
            try { if (st != null) st.close(); } catch (SQLException ignore) {}
            try { if (conn != null) conn.close(); } catch (SQLException ignore) {}
}There were other problems (e.g., your SQL query wasn't correct - no WHERE value.)

Similar Messages

  • Problem of putting the label in the middle.

    I am having a problem of putting the label in the middle.
    below are my codes.
    import java.awt.*;
    import java.applet.Applet;
    public class glay1 extends Applet{
    public void init(){
    Button button1;
    TextField textfield1;
    button1 = new Button("Set fuel Price(p)");
    textfield1 = new TextField(" ");
    Label label1, label2, label3, label4;
    label1 = new Label("pump1", Label.CENTER);
    label1.setBackground(Color.white);
    label2 = new Label("pump2", Label.CENTER);
    label2.setBackground(Color.white);
    label3 = new Label("pump3", Label.CENTER);
    label3.setBackground(Color.lightGray);
    label4 = new Label("pump4", Label.CENTER);
    label4.setBackground(Color.lightGray);
    Panel pc = new Panel();
    Panel ps = new Panel();
    setLayout(new BorderLayout());
    setBackground(Color.black);
    pc.setLayout(new GridLayout(2,2,220,50));
    pc.add(label1);
    pc.add(label2);
    pc.add(label3);
    pc.add(label4);
    ps.add(button1);
    ps.add(textfield1);
    add("South", ps);
    add("Center", pc);
    My problem is the label all are put on each corner.
    How to put the label to the middle?
    but I don't want the label to join one another,
    just put them more to the middle only.

    btw, I haven't actually used GridLayout myself but wouldn't it work for you to use the methods setHgap(int hgap) and setVgap(int vgap)?
    With GridBagLayout you can add components of varying sizes and you can easily position them on the grid. Look at this example, adding components to a JPanel called resultsPanel:
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,0,0,1,1,5,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,0,1,1,1,1,1);
              FrameTools.addComponent(resultsPanel,resultFileLabel,c,gridbag,1,1,1,1,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,2,1,1,1,1,1);
              FrameTools.addComponent(resultsPanel,loadResultFileButton,c,gridbag,3,1,0,0,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,4,1,1,1,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,0,2,1,1,5,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,0,3,1,1,1,1);
              FrameTools.addComponent(resultsPanel,linkerFileLabel,c,gridbag,1,3,1,1,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,2,3,1,1,1,1);
              FrameTools.addComponent(resultsPanel,linkerButton,c,gridbag,3,3,0,0,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,4,3,1,1,1,1);
              FrameTools.addComponent(resultsPanel,new JLabel(" "),c,gridbag,0,4,1,1,5,1);
                   The addComponent(...) method looks like this:
         public static void addComponent(Container target, JComponent comp, GridBagConstraints c, GridBagLayout g, int x, int y, int wx, int wy, int w, int h)
                  c.fill = GridBagConstraints.BOTH;
                  c.gridx = x;
                  c.gridy = y;
                  c.weightx = wx;
                  c.weighty = wy;
                  c.gridwidth = w;
                  c.gridheight = h;
                  g.setConstraints(comp, c);
                  target.add(comp);
           }     x and y specifies the position of the component and w and h the size of it. But really, read the tutorials!
    /P

  • Problems with putting the Schema on the query!!!! Need Help.

    Hi guys!
    I have a problem and a doubt about putting schema name on my query. I want to know if is neccesery specify the schema name on the query I want to execute. All my queries are on my application, I connect from the begging to my oracle data base with a user and password, this user is only alow for that schema. So my question is if I can ommit the schema name on the query.
    Explample
    Select * From Table
    Select * from Student
    Select * from Schema.Table
    Select * from Institution.Student
    Thanks, and I hope you can help me,
    Yuni.

    YOU WROTE "I have a problem and a doubt about putting schema name on my query. I want to know if is neccesery specify the schema name on the query I want to execute. All my queries are on my application, I connect from the begging to my oracle data base with a user and password, this user is only alow for that schema. So my question is if I can ommit the schema name on the query."
    don't use words that you don't know!
    also, your example (in the first post) gave the schema.table as INSTITUTION.STUDENT
    so these are all words that you started with.
    now, PAY ATTENTION and RUN THE EXAMPLE SQLS I GAVE
    connect to the database as INSTITUTION (user, schema, I don't care which).
    execute the sql statement "select * from student".
    did it do anything? did it return data, did it say "no rows", or did it have an error? my magic 8 ball and x-ray glasses are broken and I can't see you monitor (my old computer only has that one way window). if it works, then you clearly do not need to put be "putting the Schema on the query!!!!". if it didn't work, then TELL US EXACTLY WHAT HAPPENED (copy AND paste).
    and where are my cigars ;-)
    MERGE AGAIN????? PLZ Somebody HELP ME!!!!!

  • Problem in putting the query condition for negative stocks.............

    Hi,
    I am applying condition to display negative stocks.
    Situation is like In the columns , I have key figure stock quantity and stock status(QI , blocked etc)
    Accordning to the stock status column is created and all the materials are displayed for that status.
    I have put condition on stock quantity to display only the negative stocks.
    The result of the report is ok but in one case it is displaying stock qnty 1(positive stock) as well as the negative qnty for that material for different QI status.
    I am not able to understant why this positive value is getting displayed in the report when I have put the condition , stock < 0 .
    It is happening for only one material whose batch number is same and storage location is also same. But positive value is surpirsing me.
    Please let me know if somebody has solution or idea how to solve this situation.
    Thanks,
    Jeetu

    Please dont repost. it saves time for everyone

  • Big problem with put the same received dataSource on two different panels

    Hello All!
    I have a big problem, but first what have I done:
    I am writting application that is based on AVReceiver2 and AVTransmit2 from Sun help.
    I have modified AVReceiver2 to only receive one stream - video stream.
    I show received video on scrollPane, but I want to show the same video on second scrollPane in the same time. I have read about cloning dataSource, but I don't know how to modify that code to make it work.
    This is my receiver class (logger is my own class that have listbox, so don't watch on it. This is not important):
    public class Po&#322;&#261;czenie implements ReceiveStreamListener, SessionListener,
         ControllerListener
        String session = null;
        RTPManager manager = null;
        public Player player1 = null;
        boolean dataReceived = false;
        Object dataSync = new Object();
        private Logger logger;
        private JPanel&#377;ród&#322;oPo&#322;&#261;czone panelOgólny;
        private JPanel&#377;ród&#322;oSzczegó&#322;y panelSzczegó&#322;y;
        private Date dataRozpocz&#281;cia;
        public Po&#322;&#261;czenie(String session, JPanel&#377;ród&#322;oSzczegó&#322;y panelSzczegó&#322;y, JPanel&#377;ród&#322;oPo&#322;&#261;czone panelOgólny, Logger logger) {
            this.session = session;
            this.logger = logger;
            this.panelOgólny = panelOgólny;
            this.panelSzczegó&#322;y = panelSzczegó&#322;y;
        public void Start()
            if (!initialize())
                System.err.println("Failed to initialize the sessions.");
                System.exit(-1);
                System.err.println("Odbiór rozpocz&#281;ty");
        public boolean initialize() {
            try {
             InetAddress ipAddr;
             SessionAddress localAddr = new SessionAddress();
             SessionAddress destAddr;
             SessionLabel sessionLabel;
             // Open the RTP sessions.
               // Parse the session addresses.
              try {
                  sessionLabel = new SessionLabel(session);
              } catch (IllegalArgumentException e) {
                  System.err.println("Failed to parse the session address given: " + session);
                  return false;
              System.err.println("  - Otwarcie sesji RTP: addr: " + sessionLabel.addr + " port: " + sessionLabel.port + " ttl: " + sessionLabel.ttl);
              manager = (RTPManager) RTPManager.newInstance();
              manager.addSessionListener(this);
              manager.addReceiveStreamListener(this);
              ipAddr = InetAddress.getByName(sessionLabel.addr);
              if( ipAddr.isMulticastAddress()) {
                  // local and remote address pairs are identical:
                  localAddr= new SessionAddress( ipAddr,
                                     sessionLabel.port,
                                     sessionLabel.ttl);
                  destAddr = new SessionAddress( ipAddr,
                                     sessionLabel.port,
                                     sessionLabel.ttl);
              } else {
                  localAddr= new SessionAddress( InetAddress.getLocalHost(),
                                          sessionLabel.port);
                        destAddr = new SessionAddress( ipAddr, sessionLabel.port);
              manager.initialize( localAddr);
              // You can try out some other buffer size to see
              // if you can get better smoothness.
              BufferControl bc = (BufferControl)manager.getControl("javax.media.control.BufferControl");
              if (bc != null)
                  bc.setBufferLength(350);
                  manager.addTarget(destAddr);
            } catch (Exception e){
                System.err.println("Cannot create the RTP Session: " + e.getMessage());
                return false;
         // Wait for data to arrive before moving on.
         long then = System.currentTimeMillis();
         long waitingPeriod = 30000;  // wait for a maximum of 30 secs.
         try{
             synchronized (dataSync) {
              while (!dataReceived &&
                   System.currentTimeMillis() - then < waitingPeriod) {
                  if (!dataReceived)
                   System.err.println("  - Oczekiwanie na transmisj&#281; danych...");
                  dataSync.wait(1000);
         } catch (Exception e) {}
         if (!dataReceived) {
             System.err.println("No RTP data was received.");
             close();
             return false;
            return true;
         * Close the players and the session managers.
        protected void close() {
             try {
                player1.close();
             } catch (Exception e) {}
         // close the RTP session.
             if (manager != null) {
                    manager.removeTargets( "Closing session from AVReceive2");
                    manager.dispose();
                    manager = null;
         * SessionListener.
        public synchronized void update(SessionEvent evt) {
         if (evt instanceof NewParticipantEvent) {
             Participant p = ((NewParticipantEvent)evt).getParticipant();
             System.err.println("  - Do&#322;&#261;czy&#322; nowy u&#380;ytkownik: " + p.getCNAME());
         * ReceiveStreamListener
        public synchronized void update( ReceiveStreamEvent evt) {
         RTPManager mgr = (RTPManager)evt.getSource();
         Participant participant = evt.getParticipant();     // could be null.
         ReceiveStream stream = evt.getReceiveStream();  // could be null.
         if (evt instanceof RemotePayloadChangeEvent) {
             System.err.println("  - Received an RTP PayloadChangeEvent.");
             System.err.println("Sorry, cannot handle payload change.");
             System.exit(0);
         else if (evt instanceof NewReceiveStreamEvent) {
             try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
    //=========important thing:
                            DataSource cloneableDS = Manager.createCloneableDataSource( ds );
                            DataSource clonedDS = ((SourceCloneable)cloneableDS).createClone();
    //========
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null){
                  System.err.println("  - Recevied new RTP stream: " + ctl.getFormat());
              } else {
                  System.err.println("  - Recevied new RTP stream");
              if (participant == null)
                  System.err.println("      The sender of this stream had yet to be identified.");
              else {
                  System.err.println("      The stream comes from: " + participant.getCNAME());
              // create a player by passing datasource to the Media Manager
    //=====important thing:
                            player1 = javax.media.Manager.createPlayer(clonedDS);
    //=====
              if (player1 == null)
                  return;
              player1.addControllerListener(this);
              player1.realize();
              // Notify intialize() that a new stream had arrived.
              synchronized (dataSync) {
                  dataReceived = true;
                  dataSync.notifyAll();
             } catch (Exception e) {
              System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
              return;
         else if (evt instanceof StreamMappedEvent) {
              if (stream != null && stream.getDataSource() != null) {
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              System.err.println("  - The previously unidentified stream ");
              if (ctl != null)
                  System.err.println("      " + ctl.getFormat());
              System.err.println("      had now been identified as sent by: " + participant.getCNAME());
         else if (evt instanceof ByeEvent) {
              System.err.println("  - Got \"bye\" from: " + participant.getCNAME());
          player1.close();
            manager.dispose();
        }

    I wanted to show the same video stream on 2 panels at the same time. The panels are on 2 different Tabs of TabbedPane.
    So I done some kind of switch:
    - when user change tab, I change vievport from one panel to another. This works gr8, but I need to record some received video on the same time when user watch it.
    I find some code to record - this works on single machine, but now, when I have cloned dataSource I supposed to be able to record received video, but guess what: it doesn't work.
    Code of recording part:
               DataSource ds2; // I cloned this the same as I posted earlier
                PushBufferStream pbs;
         Vector camImgSize = new Vector();
         Vector camCapDevice = new Vector();
         Vector camCapFormat = new Vector();
         int camFPS;
         int camImgSel;
         Processor processor = null;
         DataSink datasink = null;
        public void record()
            fetchDeviceFormats();
              camImgSel=0;     // first format, or otherwise as desired
              camFPS = 30;     // framerate
              // Setup data source
              fetchDeviceDataSource();
              createPBDSource();
              createProcessor(ds2); // i'm using cloned datasource
              startCapture();
              try{Thread.sleep(20000);}catch(Exception e){}     // 20 seconds
              stopCapture();
         boolean fetchDeviceFormats()
              Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
              CaptureDeviceInfo CapDevice = null;
              Format CapFormat = null;
              String type = "N/A";
              CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
              for(int i=0;i<deviceList.size();i++)
                   // search for video device
                   deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
                   if(deviceInfo.getName().indexOf("vfw:")<0)continue;
                   Format deviceFormat[] = deviceInfo.getFormats();
                   for (int f=0;f<deviceFormat.length;f++)
                        if(deviceFormat[f] instanceof RGBFormat)type="RGB";
                        if(deviceFormat[f] instanceof YUVFormat)type="YUV";
                        if(deviceFormat[f] instanceof JPEGFormat)type="JPG";
                        Dimension size = ((VideoFormat)deviceFormat[f]).getSize();
                        camImgSize.addElement(type+" "+size.width+"x"+size.height);
                        CapDevice = deviceInfo;
                        camCapDevice.addElement(CapDevice);
                        //System.out.println("Video device = " + deviceInfo.getName());
                        CapFormat = (VideoFormat)deviceFormat[f];
                        camCapFormat.addElement(CapFormat);
                        //System.out.println("Video format = " + deviceFormat[f].toString());
                        VideoFormatMatch=true;     // at least one
              if(VideoFormatMatch==false)
                   if(deviceInfo!=null)System.out.println(deviceInfo);
                   System.out.println("Video Format not found");
                   return false;
              return true;
         * Finds a camera and sets it up
         void fetchDeviceDataSource() //I test it on localhost so I don't change it
              CaptureDeviceInfo CapDevice = (CaptureDeviceInfo)camCapDevice.elementAt(camImgSel);
              System.out.println("Video device = " + CapDevice.getName());
              Format CapFormat = (Format)camCapFormat.elementAt(camImgSel);
              System.out.println("Video format = " + CapFormat.toString());
              try
                   // ensures 30 fps or as otherwise preferred, subject to available cam rates but this is frequency of windows request to stream
                   FormatControl formCont=((CaptureDevice)ds2).getFormatControls()[0];
                   VideoFormat formatVideoNew = new VideoFormat(null,null,-1,null,(float)camFPS);
                   formCont.setFormat(CapFormat.intersects(formatVideoNew));
              catch(Exception e){}
         * Gets a stream from the camera (and sets debug)
         void createPBDSource()
              try
                   pbs=((PushBufferDataSource)ds2).getStreams()[0];
              catch(Exception e){}
         public void createProcessor(DataSource datasource)
              FileTypeDescriptor ftd = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              Format[] formats = new Format[] {new VideoFormat(VideoFormat.INDEO50)};
              ProcessorModel pm = new ProcessorModel(datasource, formats, ftd);
              try
                   processor = Manager.createRealizedProcessor(pm);
              catch(Exception me)
                   System.out.println(me);
                   // Make sure the capture devices are released
                   datasource.disconnect();
                   return;
         private void startCapture()
              // Get the processor's output, create a DataSink and connect the two.
              DataSource outputDS = processor.getDataOutput();
              try
                   MediaLocator ml = new MediaLocator("file:capture.avi");
                   datasink = Manager.createDataSink(outputDS, ml);
                   datasink.open();
                   datasink.start();
              }catch (Exception e)
                   System.out.println(e);
              processor.start();
              System.out.println("Started saving...");
         private void pauseCapture()
              processor.stop();
         private void resumeCapture()
              processor.start();
         private void stopCapture()
              // Stop the capture and the file writer (DataSink)
              processor.stop();
              processor.close();
              datasink.close();
              processor = null;
              System.out.println("Done saving.");
         }I run method record() from gui, after I received stream.
    IMPORTANT:
         on:           processor.close();
    I have an exception:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.sun.media.multiplexer.video.AVIMux.writeFooter(AVIMux.java:827)
    at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
    at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
    at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at jmonitorserver.engine.Po&#322;&#261;czenie.stopCapture(Po&#322;&#261;czenie.java:684)
    And the video file have 0kb, even during recording
    datasource ds2 is not null.
    any idea?

  • One more for the classpath experts

    Hi there,
    I am having classpath trouble. Have made a little example of my problem. I have a simple HelloWorld program called Test. Here is what I do...
    First, I try to run it with no CLASSPATH or �classpath info and naturally it fails because it can�t find the Test class.
    [~/mainwebsite_html/core]$ java Test
    Exception in thread "main" java.lang.NoClassDefFoundError: Test Then I put the classpath info in to allow it to find the test class and it is fine. This also works with the full path info.
    [~/mainwebsite_html/core]$ java -classpath . Test
    Hello WorldThen, I move the class file into another directory.
    [~/mainwebsite_html/core]$ cp Test.class otherdir/Test.class I execute the file with the correct classpath info but now it no longer works.
    [~/mainwebsite_html/core]$ java -classpath ./otherdir otherdir/Test
    Exception in thread "main" java.lang.NoClassDefFoundError: otherdir/TestI have tried all sorts of combinations of full path directories, using ./ and not ./ etc.
    It seems so simple that I just don't get why it wont work...
    All answers appreciated.
    regards
    Andrew

    thanks Kayaman - but I don't get it.
    This Test program is not in a package. All I want to
    do it run it. Does that mean I need to cd to that
    directory to run it? (Might be a solution I suppose)No. He's saying that you specified otherdir twice. You only need to specify it in the classpath, not in the class name. If you do combine a directory with the classname, then it refers to the class' package.
    How do I run a java program somewhere else in the
    system (even assuming I get the classpath right?)Just like he showed you: java -classpath theParentDir TheClass
    Side note: You really should put your classes into packages.

  • Where to set the classpath for custom classes in jsp

    Hi,
    we have created our custom classes in and ported in contentDB and that classes are internally using some jar files. Previously we have set the classpath of all the jar files provided in CDB devkit in the orion-web.xml but if are opening the explorer.jsp or any other jspx of contentDB we are getting the classcastexception and page is not opening.
    Is there any problem in setting the classpath. Please if any one knows abt this, reply as soon as possible.
    thanks,
    swapna soni.

    I think it is Oracle 10g Release 2... since when I click the top OAS link in the Enterprise Manager Console, it took me to 'Enterprise Manager 10g Grid Control Release 2' this page.
    And...10g Application Server Control Release 10.1.2.0.1, I think 2.0.1 means Release 2.
    Thanks and let me know if you need something else.

  • I put the ARDAgent in the trash, now i can't get rid of it.

    To solve another problem, I put the ARDAgent in the trash. Now I can't move it out of the trash, or delete the trash with ARDAgent in it.
    If I try to move ARDAgent out of the trash nothing happens. If I try to copy it out of the trash it just says "preparing to copy" forever. If I try to empty the trash it just says "preparing to empty trash" forever. If I try to put it back from where it came from in the CoreServices folder, it says that I need to authenticate and after I hit the authenticate button nothing happens.
    Any suggestions?

    I've rebooted, repaired/verified disks and permissions with the SL install DVD and Disk Warrior. Have to force restart Finder to shut the computer down if I try to copy the ARDAgent or empty the trash with it in it, because the status window perpetually says "preparing to empty trash or copy files" and won't let me shutdown without a force restart of Finder.

  • How to set up the -classpath in javadoc

    Hiya,
    I have used Runtime.exec() to execute javadoc. The problem is with the classpath coz i keep getting "No source files for package pkgnmxxx.clsnamexxx"
    My doclet class resides in the following folder:
    f:\projects\dsim\SExecutive\DiscoverClasses.java
    and is the part of package called SExecutive.
    My target classes that needs to be documented reside in
    f:\projects\dsim\model\ATMqLen\Atmqlen.java
    and is the part of package called "ATMqLen". This file "Atmqlen.java" contains classes that are not public or protected and their need not have the same name as the file itself.
    Even the java statement at the dos prompt wont work
    the statement is as follows:
    F:\> javadoc -private -doclet SExecutive.DiscoverClasses -docletpath f:\projects\dsim\SExecutive\ -sourcepath f:\projects\dsim\SExecutive;.f:\projects\dsim\model\ATMqLen\ ATMqLen.Atmqlen.java
    F:\>_
    It generates following output
    Loading source files for package ATMqLen.Atmqlen.java......
    javadoc: Warning -No source files for package Atmqlen.java
    Constructing javadoc information.......
    javadoc: Warning -No source files for package Atmqlen.java
    2 warnings
    What am i doing wrong. I think if i can get it to work at dos prompt than it would be easy to get the Runtime.exec() working.
    Thanks
    Derik.

    My doclet class resides in the following folder:
    f:\projects\dsim\SExecutive\DiscoverClasses.java
    and is the part of package called SExecutive.
    My target classes that needs to be documented reside
    in
    f:\projects\dsim\model\ATMqLen\Atmqlen.java
    and is the part of package called "ATMqLen".
    F:\> javadoc -private -doclet
    SExecutive.DiscoverClasses -docletpath
    f:\projects\dsim\SExecutive\ -sourcepath
    f:\projects\dsim\SExecutive;.f:\projects\dsim\model\AT
    qLen\ ATMqLen.Atmqlen.javaI believe the paths are wrong. You shouldn't include the package names in the paths; you just list the root of the package hierarchy.
    Also I think you're naming the java files wrong. You're mixing class naming style (dot separated) and file naming (the .java extension). I believe javadoc takes filenames. So rather than "ATMqLen.Atmqlen.java", you'd say "ATMqLen/Atmqlen.java", assuming that ATMqLen is a subdirectory of your current directory.

  • I purchased two songs on my iphone and it did sync with itunes. Then i put the two new songs in a music folder and it won't sync the songs to the folder on my iphone. same phone same computer never had this problem before.

    i purchased two songs on my iphone and it did sync with itunes. Then i put the two new songs in a music folder and it won't sync the songs to the folder on my iphone. same phone same computer never had this problem before.

    In iTunes, try signing out of your Apple ID & then back in: click on iTunes Store on the left sidebar of iTunes, click on your Apple ID on the top right, sign out, sign back in.  Then try to sync your purchased music to your phone again.

  • Im having problems with my iPod Touch 2nd gen. It's disabled and tells me to connect to iTunes. But when I do that, iTunes wont detect the iPod.I have put the iPod in USB- mode, and by that I mean I have tried connecting with holding the home button Help?

    It's disabled and tells me to connect to iTunes. But when I do that, iTunes wont detect the iPod.I have put the iPod in USB- mode, and by that I mean I have tried connecting with holding the home button when connecting the USB. Help?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    I have an iBook g4 14" 1.42 ghz. I recently installed a new hard drive.  I put the install CD in. Then, I pressed the power button, then the "C" key. Black screen and No chiming. Please tell me, what I can do to resolve this? What is the problem with it?

    Since it will not boot then a hardware test can't be run. You could try FireWire Target Disk Mode and if it works then access from another Mac to run tests on the new drive. You could also try installing the OS X software from the host computer. If this does not work then professional help should be considered.
    http://support.apple.com/kb/ht1661
    http://osxdaily.com/2010/04/07/how-to-boot-a-mac-in-target-disk-mode/
    http://www.macobserver.com/tmo/answers/how-to-use-target-disk-mode-to-boot-from- another-macs-hard-drive

  • TS2516 an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    an error occurred uploading my iPhoto Book order. It puts the book together and starts to send but at the very last moment comes up with an error message. but checking the book in iPhoto there are no problems to be found.

    This user talked to Apple Support personnel and confirms what Larry is suggesting:
    crowland1066
    Re: book upload fails
    Nov 30, 2013 3:02 PM (in response to pablo123)
    Just got off the phone with apple support.  If the photo book completes the assembly process but fails during the upload process the problem is in their overloaded servers.They just started a free shipping promotion for the holidays which has increased the traffic dramatically. I bought a calendar a week ago and it went right through. I'm going to try again during less peak times.
    Happy Holidays

  • My iPhone is a iPhone 3GS. For some reason, the ringer becomes silent although I have put the ringer on full volume. Would someone kindly teach me how to solve this problem? Many thanks!!

    My iPhone is a iPhone 3GS. For some reason, the ringer becomes silent although I have put the ringer on full volume. Would someone kindly teach me how to solve this problem? Many thanks!!

    Just to make sure... you have the phone in ringer mode right? Sometimes the switch on the side gets bumped (especially if you don't have a case on the iPhone) and goes into silent. If you see a orange line on the switch - it's on silent.
    If the switch is fine (and isn't loose or anything) try restoring the iPhone in iTunes.

  • I purchased Microsoft Office for Mac through the Apple website.. I have downloaded all from the disk into my Mac, no problem with all the other Word etc, but Outlook is asking for the key number: I have put it in but its obviously not the right one...????

    I purchased Microsoft Office for Mac through the Apple website.. I have downloaded all from the disk into my Mac, no problem with all the other Word etc, but Outlook is asking for the key number: I have put it in but its obviously not the right one...???? In the box with the disk came the product key, have put it in and it doesnt work. Please help..x

    unfortunately - you can not.  you can't even buy outlook by itself at microsoft's own website.
    does it have to be outlook?  maybe you can get away with using something else that's outlook compatible.
    how about trying Thunderbird for Mac OS?
    or maybe you can call apple and let them know you purchase the wrong version - they might give you a break and just pay the difference for the home and business version.
    good luck

Maybe you are looking for