Problems with classpath in Fedora core 4

hello
i want to set class path in Fedora core 4 so that my jmf2.1.1e apis is properly taken during compilation and runtime. in short; i want to install jmf into Linux distro sothat i can compile and run its applications.
also i have a jar file of a jmf media player. now i need to know how to run it from a jar into my Fedora core distro...
i have downloaded the linux performance pack from sun site and also read the installation notes but that really doesnt help. they say to apply the command 'setenv' into the shell to set environment var but that doesnt work i have seen.
please help!

've found the solution to the problem. You have to use the -Xbootclasspath/a parameter when running java.
Example on unix:
java -Xbootclasspath/a:${CLASSPATH} -jar test.jar
Brgds
Jakob

Similar Messages

  • Problem with installation on Fedora core 5 [OCRUTL]

    Hi
    We have problem with instalation XE on Fedora C5 64bit (RAID 10).
    In css.log we have errors:
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    [  OCRUTL][4143179440]u_set_comp_error: Parameter was NULL
    [  OCRUTL][4143179440]u_set_ocr_error: Parameter was NULL
    2006-08-03 11:49:14.794: [  OCROSD][4143179440]utgdv:2:ocr loc file cannot be opened
    2006-08-03 11:49:14.794: [  OCROSD][4143179440]utopen:1: Couldnt find ocr,[ocrmirror] location in config file
    [  OCRUTL][4143179440]u_set_gbl_comp_error: Parameter was NULL
    2006-08-03 11:49:14.794: [  OCRRAW][4143179440]proprinit: Could not open raw device
    2006-08-03 11:49:14.794: [ default][4143179440]a_init:7!: Backend init unsuccessful : [33]
    [  OCRUTL][4143179440]u_set_ocr_error: Parameter was NULL
    2006-08-03 11:49:14.794: [ CSSCLNT][4143179440]clsssinit: error(33 ) in OCR initialization
    While installation there are no errors. After trying to start oracle-xe (manually or after reboot) nothing happens (only errors in log files).

    you can ignore those errors, everyone gets them
    is there a specific problem you are having

  • NW04s Linux Trial : problem installing IBM JDK Fedora Core 6

    Hi,
    I'm trying to install the NW04S Linux Preview on a Fedora Core 6 distribution and I'm encountering a problem with the IBM JDK 1.4.2 installation.
    I've downloaded the RPM package from IBM (IBMJava2-AMD64-142-SDK-1.4.2-7.0.x86_64.rpm
    ), installed it as root but when I try to invoke the virtual machine (java) or the compiler (javac), I got the following error :
    libjvm.so preloadLibrary: /libj9vm22.so: cannot open shared object file: No such file or directory
    libjvm.so failed to load: j9vm22
    Has anyone tried to install the Linux Preview on Fedora and encountered the same problem. It might be connected to some sort of the linux dynamic linker/loader (ld.so) or versions of librairies.
    I'm really lost here and I won't be able to start the installation without a working virtual machine.
    Thanks

    I have double checked the link provided to the IBM JDK in the Linux Trial and it seems I had the wrong version. I've downloaded IBMJava2-AMD64-142-SDK-1.4.2-7.0.x86_64.rpm (1.4.2-7) and the special version for SAP is the IBMJava2-AMD64-142-SDK-1.4.2-2.0.x86_64.rpm (1.4.2-2).
    I have installed it : rpm -ivh IBMJava2-AMD64-142-SDK-1.4.2-2.0.x86_64.rpm
    I have installed it and activated it as the default JVM using alternatives command :
    alternatives --install /usr/bin/java java /opt/IBMJava2-amd64-142/bin/java 2
    alternatives --config java
    I now have a different error :
    [root@macpro ~]# java
    JVM not found: libjvm.so  - libjvm.so
    What could have I done wrong ?
    Thanks for you help

  • JSP with JDBC on Fedora Core

    Hi all,
    I have Windows XP and Fedora Core Project 1 on my PC. I am trying to learn JSP and JDBC. I am using Wrox's Professional JSP book for reference.
    I was able to executed the code successfully on Windows XP with SQL Server 2000 as database. I tried to execute the same code on Linux with MySQL 3.2.23 and J2SDK1.4.2. For that I also downloaded MySQL/Connector-J drivers. I modified the classpath to include the driver file (.jar) in it. But I get error "Authentication Failure for use root". I have exactly as it was written in the book. I am looking for some suggestion on this. If any one can help, that would be great. Also, let me know if any more information is needed.

    howdy,
    from where u get this error ? it seems to be from ur linux box, or Mysql !
    can u connect to ur Mysql database in a standalone/sample application ? [just test it]
    --Behrad                                                                                                                                                                                                                                                                                                                                                                   

  • Instalation Problem Oracle 10g In Fedora Core 4

    Hello
    I have this installer oracle-xe-univ-10.2.0.1-1.0.i386.rpm already installed in Fedora Core 5 without any problem
    when i didt it for Fedora Core 4 (other machine i have this error) (same instalation configuration!!!)
    [root@localhost Section1]# rpm -Uvh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
    Preparing...                ########################################### [100%]
       1:oracle-xe-univ         ########################################### [100%]
    Executing Post-install steps...
    You must run '/etc/init.d/oracle-xe configure' as the root user to
    configure the database.
    [root@localhost Section1]# /etc/init.d/oracle-xe configure
    Oracle Database 10g Express Edition Configuration
    This will configure on-boot properties of Oracle Database 10g Express
    Edition.  The following questions will determine whether the database should
    be starting upon system boot, the ports it will use, and the passwords that
    will be used for database accounts.  Press <Enter> to accept the defaults.
    Ctrl-C will abort.
    Specify the HTTP port that will be used for Oracle Application Express [8080]:8081
    Specify a port that will be used for the database listener [1521]:1521
    Specify a password to be used for database accounts.  Note that the same
    password will be used for SYS and SYSTEM.  Oracle recommends the use of
    different passwords for each database account.  This can be done after
    initial configuration:
    Confirm the password:
    Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:n
    Starting Oracle Net Listener...Done
    Configuring Database...grep: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/log/*.log: No such file or directory
    Done
    /bin/chmod: cannot access `/usr/lib/oracle/xe/oradata/XE': No such file or directory
    /bin/chmod: cannot access `/usr/lib/oracle/xe/oradata/XE': No such file or directory
    Starting Oracle Database 10g Express Edition Instance...Done
    Installation Completed Successfully.
    To access the Database Home Page go to "http://127.0.0.1:8081/apex"
    [root@localhost Section1]#when i start up
    [root@localhost Section1]# /etc/init.d/oracle-xe enable
    [root@localhost Section1]# /etc/init.d/oracle-xe start
    Starting Oracle Net Listener.
    Starting Oracle Database 10g Express Edition Instance.
    Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
    [root@localhost Section1]#i cant open the browser with the url http://127.0.0.1:8081/apex
    of course that i can do this in my other FC5
    how i can resolve this???
    thanks so much for advanced
    Regards

    2) XE Forum. If you have XE working and can get to the web page, you should see the link to register for the XE forum. You must register and then 'sign in' to see the XE forum. The link on your XE home page should point to http://www.oracle.com/technology/xe/registration'
    1) What's the difference ... ?
    OK ... here we go ....
    Oracle has hundreds of products. I like to group them into 'technology' and 'application' products.
    The 'technoloy' products I group into
    - data management == database
    - data access == applicaiton server (fusion)
    - data manipulation == developer tools and languages
    - data sharing == collaboration suite
    Without data access, the data management and data manipulation is plain 'client-server' stuff.
    With data access, you stick an application server (web server, J2EE server, other server) between the client and the database.
    The Oracle Application Server is a collection of Oracle technology designed to support n-tier computing. The technology includes:
    - http server (Apache stuff)
    - reporting server
    - portal server
    - forms/data entry server
    - generic J2EE server
    - BPEL and SOA orchestration
    - Web Services server
    - workflow and intergration server
    - centralized security and single sign-on server
    and a lot more.
    The Oracle database, of course, stores and manages data. Oracle now has many 'database managers', including
    - Oracle Database == the traditional one
    - Times Ten == in memory only, but very high speed
    - Berkeley == embedded (to be included as part of your application)
    - Lite == for laptops and remote devices
    and more
    The traditional Oracle database has many features. These features may not be needed by all organizations. So Oracle has created several editions. These are Express, Standard Edition One, Standard Edition, Enterprise Edition and Personal Edition. In the order presented, each adds more feature than the one before but includes all the features from the one before.
    The Express Edition has the fewest features and the simplest install. It has no official Oracle support and has size limitations (4GB data max, only runs one 1 CPU). It includes Application Express which allows you to access the data from a web browser. I think of this as 'Microsoft Access, with Oracle multi-user reliability, on the Web'.
    The Standard Edition One has everything from Express and adds: Java in the database, ability to use up to 2 CPU, many more features such as multi-media storage, no data size limit. It also changes the install to use the Oracle Univeral Installer.
    Standard Edition adds Real Application Cluster to allow up to 4 CPU to be used, whether the 4 CPU are on one, two or four machines.
    Enterprise Edition adds many high availability and scalability features to ensure the database will try to stay up all the time and will be able to handle many hundreds or thousands of users. Many DBA features are added to allow detailed tuning and management. And many options such as Partitioning, Label Security and Spatial can be purchased and added to this edition.
    Personal Edition includes all of Enterprise Edition AND all of the Enterprise Edition options except Real Application Cluster. It is designed to be used by the Oracle developer so it is very inexpensive (in comparison to the Enterprise Edition) but it is limited (by the honor system) to one user access.
    So when you use Express Edition, everytthing you do can be done in Enterprise Edition as well. Express Edition is a great learning tool for getting comfortable with the commercial Oracle database. It is also a great tool for developing applications for small organizations or even for home use. A great tutorial for XE is at http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm
    All of this is described in a few pages of documentation (about 70 thousand) at http://docs.oracle.com. If you want to understand Oracle well, you may have to spend a bit less time with the nuns for a while.

  • Problem with classpath for XP

    i've made a java applet with three classes, two of which are classes to construct variables needed for the main interface to work. but the interface class cannot recognise that the other two classes exist. it gives out the cannot resolve system error. i know that there is no problem with the program syntax (or which directory they are in) because it compiles on other computers and i can compile the individual classes on my sustem. i have made numerous one class programs before so the compiler definitely works in some situations. i'm thinking then that the problem must be with my jdk in some way. i've tried re-installing my jdk and installing a different jdk but stil no joy. someone mentioned to me it could be something to do with how the classpath is set up but this is something i'm a bit unsure about, i know though that XP is slightly different to the other windows o/s. any advice would be much appreciated.

    My Windows is not English so I'm not sure whether it's exactly the same:
    Start>Configuration>System>Environment variables
    If there is a variable with the name "CLASSPATH" (system variables) look if . is in your classpath. If not, add to the classpath ";." . And if there is no CLASSPATH variable, add it (and add the value . to it).
    I hope it helps.

  • Startup Problems Application Server on Fedora Core 5

    Greetings All;
    Little background information
    router ip address: 192.168.1.1
    web server ip address: 192.168.1.101 (outside: dcrumb.homeip.net)
    installed from ip address: 192.168.1.100
    using jdk-1.5.0_07
    here are my applicable firewall rules:
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 4848 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 8080 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 8181 -j ACCEPT
    -A RH-Firewall-1-INPUT -m state state NEW -m tcp -p tcp dport 8686 -j ACCEPT
    I've also forwarded these ports in my Linksys router
    Here are my error messages:
    [#|2006-06-14T22:30:13.251-0400|INFO|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|
    /usr/share/jdk1.5.0_07/bin/java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=/opt/SUNWappserver/domains/domain1/logs/server.log
    -Djava.endorsed.dirs=/opt/SUNWappserver/lib/endorsed
    -Djava.security.policy=/opt/SUNWappserver/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=/opt/SUNWappserver/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=/opt/SUNWappserver/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=/opt/SUNWappserver/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=/usr/share/jdk1.5.0_07/jre/lib/ext:/opt/SUNWappserver/domains/domain1/lib/ext:/opt/SUNWappserver/derby/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=domain1
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=/opt/SUNWappserver/domains/domain1
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=domain1
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=/opt/SUNWappserver/config
    -Djava.library.path=/usr/share/jdk1.5.0_07/jre/lib/i386/client:/usr/share/jdk1.5.0_07/jre/lib/i386/client:/usr/share/jdk1.5.0_07/jre/lib/i386:/usr/share/jdk1.5.0_07/jre/../lib/i386:/opt/SUNWappserver/lib:/usr/lib/lwp:/opt/SUNWappserver/lib:/usr/lib/lwp:/usr/share/jdk1.5.0_07/jre/lib/i386/client:/usr/share/jdk1.5.0_07/jre/lib/i386:/usr/share/jdk1.5.0_07/jre/../lib/i386:/opt/SUNWappserver/lib:/opt/SUNWappserver/lib:/opt/SUNWappserver/lib:
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    /usr/share/jdk1.5.0_07/lib/tools.jar:/opt/SUNWappserver/lib/appserv-rt.jar:/opt/SUNWappserver/lib/admin-cli.jar:/opt/SUNWappserver/lib/jax-qname.jar:/opt/SUNWappserver/lib/appserv-cmp.jar:/opt/SUNWappserver/lib/jaxrpc-impl.jar:/opt/SUNWappserver/lib/commons-launcher.jar:/opt/SUNWappserver/lib/jmxremote_optional.jar:/opt/SUNWappserver/lib/j2ee-svc.jar:/opt/SUNWappserver/lib/commons-logging.jar:/opt/SUNWappserver/lib/mail.jar:/opt/SUNWappserver/lib/dom.jar:/opt/SUNWappserver/lib/appserv-jstl.jar:/opt/SUNWappserver/lib/jaxr-impl.jar:/opt/SUNWappserver/lib/j2ee.jar:/opt/SUNWappserver/lib/jsf-api.jar:/opt/SUNWappserver/lib/jsf-impl.jar:/opt/SUNWappserver/lib/saaj-api.jar:/opt/SUNWappserver/lib/appserv-upgrade.jar:/opt/SUNWappserver/lib/jaxr-api.jar:/opt/SUNWappserver/lib/xsdlib.jar:/opt/SUNWappserver/lib/saaj-impl.jar:/opt/SUNWappserver/lib/rmissl.jar:/opt/SUNWappserver/lib/relaxngDatatype.jar:/opt/SUNWappserver/lib/xercesImpl.jar:/opt/SUNWappserver/lib/xalan.jar:/opt/SUNWappserver/lib/appserv-admin.jar:/opt/SUNWappserver/lib/appserv-ext.jar:/opt/SUNWappserver/lib/jaxrpc-api.jar:/opt/SUNWappserver/lib/activation.jar:/opt/SUNWappserver/lib/jmxremote.jar:/opt/SUNWappserver/lib/install/applications/jmsra/imqjmsra.jar:/opt/SUNWappserver/imq/lib/jaxm-api.jar:/opt/SUNWappserver/imq/lib/fscontext.jar:/opt/SUNWappserver/lib/ant/lib/ant.jar
    com.sun.enterprise.server.PEMain
    start
    display|#]
    [#|2006-06-14T22:30:29.526-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [/opt/SUNWappserver/imq/bin].|#]
    [#|2006-06-14T22:30:29.537-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5098: AS Socket Service Initialization has been completed.|#]
    [#|2006-06-14T22:30:33.433-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0046:The Platform MBeanServer is available. It will be used to register Application Server MBeans. Platform MBeans will also be available for browsing while using standard JMX Console.|#]
    [#|2006-06-14T22:30:33.461-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
    [#|2006-06-14T22:30:34.381-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
    [#|2006-06-14T22:30:37.708-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server server|#]
    [#|2006-06-14T22:30:37.769-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Created virtual server __asadmin|#]
    [#|2006-06-14T22:30:41.921-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3700"|#]
    [#|2006-06-14T22:30:44.285-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3820"|#]
    [#|2006-06-14T22:30:44.322-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3920"|#]
    [#|2006-06-14T22:30:49.383-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]
    [#|2006-06-14T22:31:15.145-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM1079: Initialization of AMX MBeans successful|#]
    [#|2006-06-14T22:31:17.679-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: TimerBean; containerId: 75388332422004736|#]
    [#|2006-06-14T22:31:19.824-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]|#]
    [#|2006-06-14T22:31:19.826-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!|#]
    [#|2006-06-14T22:31:20.540-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: MEJBBean; containerId: 75388332902776832|#]
    [#|2006-06-14T22:31:21.303-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5010: All ejb(s) of [MEjbApp] loaded successfully!|#]
    [#|2006-06-14T22:31:21.542-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0302: Starting Sun-Java-System/Application-Server.|#]
    [#|2006-06-14T22:31:21.995-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at []|#]
    [#|2006-06-14T22:31:22.758-0400|WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
    [#|2006-06-14T22:31:23.256-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [web1]|#]
    [#|2006-06-14T22:31:23.306-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [asadmin]|#]
    [#|2006-06-14T22:31:23.320-0400|WARNING|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0500: default-locale attribute of locale-charset-info element has been deprecated and is being ignored. Use default-charset attribute of parameter-encoding element instead|#]
    [#|2006-06-14T22:31:23.350-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0100: Loading web module [com_sun_web_ui] in virtual server [__asadmin] at [com_sun_web_ui]|#]
    [#|2006-06-14T22:31:23.931-0400|INFO|sun-appserver-pe8.2|org.apache.catalina.core.StandardEngine|_ThreadID=10;|Starting Servlet Engine: Sun-Java-System/Application-Server|#]
    [#|2006-06-14T22:31:33.650-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Initializing Grizzly Non-Blocking Mode|#]
    [#|2006-06-14T22:31:33.651-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0703: Initializing Sun-Java-System/Application-Server-PE HTTP/1.1 on 8080|#]
    [#|2006-06-14T22:31:33.720-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0712: Starting Sun-Java-System/Application-Server-PE HTTP/1.1 on 8080|#]
    [#|2006-06-14T22:31:34.266-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Initializing Grizzly Blocking Mode|#]
    [#|2006-06-14T22:31:34.268-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0703: Initializing Sun-Java-System/Application-Server-PE HTTP/1.1 on 8181|#]
    [#|2006-06-14T22:31:34.290-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0712: Starting Sun-Java-System/Application-Server-PE HTTP/1.1 on 8181|#]
    [#|2006-06-14T22:31:34.523-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|Initializing Grizzly Non-Blocking Mode|#]
    [#|2006-06-14T22:31:34.524-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0703: Initializing Sun-Java-System/Application-Server-PE HTTP/1.1 on 4848|#]
    [#|2006-06-14T22:31:34.546-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0712: Starting Sun-Java-System/Application-Server-PE HTTP/1.1 on 4848|#]
    [#|2006-06-14T22:31:35.616-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Service [email protected]3 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://dcrumb.homeip.net:8686/management/rmi-jmx-connector]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host]|#]
    [#|2006-06-14T22:31:35.619-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5071: An error occured during initialization
    com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://dcrumb.homeip.net:8686/management/rmi-jmx-connector]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host]
    at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:104)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    Caused by: java.io.IOException: Cannot bind to URL [rmi://dcrumb.homeip.net:8686/management/rmi-jmx-connector]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host]
    at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
    at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:431)
    at com.sun.enterprise.admin.jmx.remote.server.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:177)
    at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:95)
    ... 3 more
    Caused by: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host]
    at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:122)
    at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
    at javax.naming.InitialContext.bind(InitialContext.java:359)
    at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:635)
    at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427)
    ... 5 more
    Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
    at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:116)
    ... 9 more
    Caused by: java.rmi.AccessException: Registry.Registry.bind disallowed; origin /192.168.1.1 is non-local host
    at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
    at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:119)
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
    at sun.rmi.transport.Transport$1.run(Transport.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    |#]
    [#|2006-06-14T22:31:35.629-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Server Startup failed. Exiting...|#]
    [#|2006-06-14T22:31:35.630-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Server shutdown in progress...|#]
    [#|2006-06-14T22:31:35.639-0400|WARNING|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5061: Exception :
    com.sun.appserv.server.ServerLifecycleException
    at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:122)
    at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:317)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    |#]
    [#|2006-06-14T22:31:35.642-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0303: Stopping Sun-Java-System/Application-Server.|#]
    [#|2006-06-14T22:31:35.665-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0713: Stopping Sun-Java-System/Application-Server-PE HTTP/1.1 on 8080|#]
    [#|2006-06-14T22:31:35.708-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0713: Stopping Sun-Java-System/Application-Server-PE HTTP/1.1 on 8181|#]
    [#|2006-06-14T22:31:35.728-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0713: Stopping Sun-Java-System/Application-Server-PE HTTP/1.1 on 4848|#]
    [#|2006-06-14T22:31:36.657-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5051: Shutting down all J2EE applications ...|#]
    [#|2006-06-14T22:31:36.675-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5122:EJB Timer Service shutdown at [2006/06/14 22:31:36]|#]
    [#|2006-06-14T22:31:36.676-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE 5060 :  Stopping all J2EE Connector 1.5 Compliant resource adapters ...|#]
    [#|2006-06-14T22:31:36.686-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.resourceadapter|_ThreadID=10;|RAR7094: __xa shutdown successfully.|#]
    [#|2006-06-14T22:31:36.687-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE 5061 : Resource adapters Stop() Complete|#]
    [#|2006-06-14T22:31:36.688-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5052: Application shutdown complete.|#]
    [#|2006-06-14T22:31:38.281-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5025: JMS service shutting down.|#]
    [#|2006-06-14T22:31:39.375-0400|INFO|sun-appserver-pe8.2|javax.enterprise.resource.jms|_ThreadID=10;|JMS5026: JMS service shutdown complete.|#]
    [#|2006-06-14T22:31:39.376-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|Server stopped due to Server startup failure.|#]
    [#|2006-06-14T22:31:39.452-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=11;|sending notification to server...server|#]
    [#|2006-06-14T22:31:39.482-0400|INFO|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=11;|Server shutdown complete.|#]
    Does anybody have any suggestions?
    Many thanks,
    Best,
    --Dave
    Message was edited by CrumbDav
    I did some more research and looked in my domain.xml file and came across this. Not sure if it helps any:
    - <configs>
    - <config dynamic-reconfiguration-enabled="true" name="server-config">
    - <http-service>
    <http-listener acceptor-threads="5" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="8080" security-enabled="false" server-name="" xpowered-by="true" />
    <http-listener acceptor-threads="5" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="8181" security-enabled="true" server-name="" xpowered-by="true" />
    <http-listener acceptor-threads="5" address="0.0.0.0" blocking-enabled="false" default-virtual-server="__asadmin" enabled="true" family="inet" id="admin-listener" port="4848" security-enabled="false" server-name="" xpowered-by="true" />
    - <virtual-server hosts="${com.sun.aas.hostName}" http-listeners="http-listener-1,http-listener-2" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
    <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot" />
    <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access" />
    </virtual-server>
    - <virtual-server default-web-module="admingui" hosts="${com.sun.aas.hostName}" http-listeners="admin-listener" id="__asadmin" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
    <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot" />
    <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access" />
    </virtual-server>
    </http-service>
    - <iiop-service client-authentication-required="false">
    <orb max-connections="1024" message-fragment-size="1024" use-thread-pool-ids="thread-pool-1" />
    <iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="3700" security-enabled="false" />
    - <iiop-listener address="0.0.0.0" enabled="true" id="SSL" port="3820" security-enabled="true">
    <ssl cert-nickname="s1as" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true" />
    </iiop-listener>
    - <iiop-listener address="0.0.0.0" enabled="true" id="SSL_MUTUALAUTH" port="3920" security-enabled="true">
    <ssl cert-nickname="s1as" client-auth-enabled="true" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true" />
    </iiop-listener>
    </iiop-service>

    Nope - it's not supported. It is useable though ...
    The problem is that the Fedora series uses cutting edge technology. The Fedora technology cycles every 6-9 months.
    Oracle likes things very stable. So Oracle builds a clean copy using a specific set of APIs at a specific release of the kernel, the glibc and so on. They chose the commercial releases which cycle every 18-24 months - in part so they can get people trained to provide support.
    Due to the nature of Linux, you CAN install the correct APIs and get it to work and many of the free distros. Just don't expect Oracle to provide assistance or support. (After all, where do they stop - there are hundreds of free distros, and even more when you count the 'objsolete but still running' ones.)
    If you really want to proceed, then you need to read up the cookbook sites from experts such as Ivan Kartik (http://ivan.kartik.sk/) or Werner Puschitz (http://www.puschitz.com) As long as you realize that the install is NOT recommended for production.

  • Problems with classpath and comiling an easy program

    Hello everyone:
    I have downloaded jsdk1.3.1_03, (Windows xp)? what do i type in the class path?
    Once I am done with setting the classpath. I typed the helloworld program, and it give me an error specified path not found).
    Please help, through this.
    Sincerely
    Johanna

    it is problems with compiling and running!!! ,
    everytime I try to comile the helloworld program, it
    state an error like :specific path not found. I set
    the path and classpath to C:\jsdk1.3.1\bin
    is that correct? If you installed the developer's kit into c:\jsdk1.3.1 then that is correct. You need to include the directory where you installed java. Typically, that is c:\jdk1.3.1 for example (and add \bin). You can try to "cd c:\jsdk1.3.1\bin" and try javac again. You must have NO spaces in your Path setting.

  • Problems with my FFT ip core

    Hi, this is my first message in Xilinx forums, althought i;m not new with Xilinx FPGAs neither with VHDL.
    I'm trying to make an FFT with the Xilinx IP Core and to test it i'm giving a sinewave in the testbench and i'm saving both input and output in files that afterwards I read in Matlab. 
    Details of my FFT IP Core: 
    Length 2048
    Target CLK 100MHz
    Radix4,BurstIO
    Fixed point
    Input width 10 bit
    Unscaled
    What I'm doing in the testbench is basically feeding a new value of the sinewave every clk_period, then if data valid =1 i save both input and output in files that i read with matlab afterwards. 
    When I check the FFT of the input with Matlab it looks as it should, but when I check the output of the IP Core I get some results that I can't even interpret.
    The DC components are correctly placed, in 1 and 2048, but then I don't have the two peaks that would correspond to the sinewave's FFT.
    I attach both pictures of the results here and also the project and the matlab file to read the files (you'll have to change the path)
    If someone have any idea of what is going on here I would really appreciate the help!
    Thanks in advance!
    Martin

    I'm saving the xk_index and plotting the result of the FFT following the xk_index it gives me the following:
    It is different than what I was obtaining previously, now at least the negative and positive parts of the FFT are symetric, which makes sense, but the bin where the peak should be is not correct. 
    The way I'm saving the value of xk_index is to_integer(unsigned(xk_index)) and then I just plot following those values.
    Is that the correct procedure?

  • Any problems with lion running on core 2 duo 2007 MBPro ?

    Curious to hear if anyone has had any problems with Lion before I upgrade.
    Thanks.

    OK, so this is a shot in the dark, but maybe it's worth a try.
    Since the problem only occurs when running on battery, perhaps changing the Energy Saver settings to match the settings used for when it's plugged in will fix the problem. The default settings for how the computer operates are different for the battery and power adaptor. When you unplug the power, the computer automatically shifts to the alternate settings.
    So, try this:
    -Open System Preferences->Energy Saver
    -In the "Settings for" drop-down menu, select "Battery".
    -In the "Optimization" drop-down menu, select "Better Performance".
    -Under the Sleep tab, choose "Never" for both computer and display sleep and uncheck the box for "Put the hard disk to sleep when possible".
    -Under the Options tab, uncheck the first two boxes.
    15" MacBook Pro 2.33 GHz   Mac OS X (10.4.8)  

  • Problems with classpath and accessing a specific file

    I'm currently running an application using NetBeans (I know this is the Sun Forum but maybe someone can help). For those who aren't familiar with this IDE, whenever a project is created, a ProjectName folder is also created. Inside that folder are 5 new folders (*build*, dist, nbproject, src and test) as well as 2 new files (*build.xml*, manifest.mf). The dist folder contains the *.jar* file.
    Seeing that this is an audio application, I am constantly working with audio files. In the ProjectName folder, I've created a sixth folder (*audiofiles*) were I load and save such audio files. To access a specific audio file, I do the following:
    File audioExample = File("audiofiles" + File.separator + "audio.wav");When I run the project from the IDE there doesn't seem to be a problem. However, when I try to run the project by simply double-clicking the *.jar* file in the dist folder, the audio files can't be accessed. In order to be able to access them, I need to change the path:
    File audioExample = File("C:\...\ProjectName\audiofiles\audio.wav");This seems to solve the problem temporarily, but if I decide to change to project folder location, I also need to change the path.
    QUESTION:
    What is the best way to access files so that they are not dependent on where the project folder is located? Do I need to modify the classpath or simply write the path in File(...) in a specific way? If I need to modify the classpath, how can I do so in Netbeans?
    Thanks in advance.

    DrClap,
    Thanks for the reply. To answer your questions:
    Naturally that depends on where you DO want to load from. Are the files in the classpath? Are they in the current working directory?
    Some other directory where you can ask the user to point to? On a different computer?The audio files are located in a created folder in the IDE project folder. I know you mentioned that I should stop thinking about this as an IDE project but I don't know any other way to think about it. I'm kinda new to Java, and the only way I've learned how everything is structured is through the IDE project structure. I'm realizing that this is probably not the best way to go about as it doesn't allow me to have a good understanding of the Java file structure. What changes do I need to make in the way I view my IDE project to make it more into a deployed version?
    I'm also having a hard time understanding the classpath concept. I've been under the impression that the classpath was simply the location of the packages and classes of a specific application. How could I check if the audio files are in the classpath?
    Thanks in advance.

  • Problems with CLASSPATH in a executable jar file

    Hi there
    I'm having a problem that I don't know how to solve. My generalq uestion is:
    "Why isn't my CLASSPATH (java.class.path) forwarded into ar unnable class inside a jar file?"
    The situation is:
    I have made a runnable jar file containing an ant build.xml file, a jar file containing some patch files, and a class called AntLoader.class. AntLoader are the file that are executed (inserted into the manifest). This works. The class are executed, but it can't find the package needed for starting ant.
    ant.jar is in my CLASSPATH, and therefore everything works fine if I'm running AntLoader outside the jar file.
    I know that I can use different ClassLoader classes for dynamicly loading of a class, but then I need a path to where ant.jar is located. And then again my system wont be general. The jar file is supposed to be distributed as a system patch to customers. And their location of where ant is installed will not be the same.
    So what I'm looking for is a way to pass my CLASSPATH from my environment on to a jar file. Is that possible?
    running java -classpath "${CLASSPATH}" -jar cpc.jar doesn't help at all. The java.class.path is still set to cpc.jar when I'm executing the AntLoader class inside cpc.jar.
    Can anyone please help me?
    Brgds
    Jakob

    've found the solution to the problem. You have to use the -Xbootclasspath/a parameter when running java.
    Example on unix:
    java -Xbootclasspath/a:${CLASSPATH} -jar test.jar
    Brgds
    Jakob

  • Execute an external java program with Runtime, problem with classpath

    Hi,
    I m calling an external java program by the command:
    Runtime.getRuntime().exec("java -classpath \"library/*\" org.mypackage.TestMainProgram param1 c:/input/files c:/output/files");All my classes are stored in the relative directory "library", and it contains ONLY .jar files. However, I keep getting errors like:
    "java.lang.NoClassDefFoundError: library/antlr/jarCaused by: java.lang.ClassNotFoundException: library.antlr.jar     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)Could not find the main class: library/antlr.jar. Program will exit.Exception in thread "main" where "antlr.jar" is a jar file in "library". It is there but still the program keeps complaining it cannot be found. The problem applies to any jars in "library", ie.., if i have "mylib.jar" then it will complain "NoClassDefFoundError: library/mylib/jar".
    Could anyone give some pointers please?
    Many thanks!
    Edited by: 836590 on 14-Feb-2011 09:03

    836590 wrote:
    Hi,
    I m calling an external java program by the command:
    Runtime.getRuntime().exec("java -classpath \"library/*\" org.mypackage.TestMainProgram param1 c:/input/files c:/output/files");All my classes are stored in the relative directory "library", and it contains ONLY .jar files. However, I keep getting errors like:
    "java.lang.NoClassDefFoundError: library/antlr/jarCaused by: java.lang.ClassNotFoundException: library.antlr.jar     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)Could not find the main class: library/antlr.jar. Program will exit.Exception in thread "main" where "antlr.jar" is a jar file in "library". It is there but still the program keeps complaining it cannot be found. The problem applies to any jars in "library", ie.., if i have "mylib.jar" then it will complain "NoClassDefFoundError: library/mylib/jar".
    Could anyone give some pointers please?
    Many thanks!
    Edited by: 836590 on 14-Feb-2011 09:03First, if you run from the command line
    java -classpath "library/*" org.mypackage.TestMainProgram param1 c:/input/files c:/output/filesfrom the parent directory of library, does it work?
    Despite what I said to Kayaman about Runtime.exec not expanding the asterisk, it looks like that's what's happening, so that you're getting
    java -claspath library/aaaa_something_before_antlr.jar library/antlr.jar library/bbb.jar library/ccc.jar  org.mypackage.TestMainProgram param1 c:/input/files c:/output/filesThat is, it *is* expanding the asterisk to a list of files in the directory, and the first one is being taken as the classpath, and the second one--library/antlr.jar is being taken as the class to execute. I'm certain this doesn't happen on Linux, so it must be a Windows thing.
    Two suggestions:
    1) Try single quotes instead of double.
    2) Try the exec that takes an array
    Runtime.getRuntime().exec(new String[] {"java", "-classpath", "'library/*'", "org.mypackage.TestMainProgram", "param1", "c:/input/files", "c:/output/files");Edited by: jverd on Feb 14, 2011 9:41 AM

  • Power and battery problems with MacBook Pro intel core duo

    Hi there, I've been having this problem for about a week now with my macbook pro where it shuts down a second after it's unplugged, even though the battery is full. I tested the power cord with another that works, and the same thing still happens. I've zapped the p-ram, and reset the MPU where you take out the battery and hold down the power button for 5 seconds and all that. I think it might be the logic board, or something within that? Any suggestions before I send it in to Apple for investigations?

    I started having the same problem several days ago. Unplug the magsafe connector, and the MBP powers suddenly powers off, even though the battery shows a full charge on both the menu bar and the battery leds.
    I decided to try a new battery after reading a number of posts here about the same problem.
    Back to normal with the new battery. So now I'll go back to Apple to get the non-functioning battery replaced under AppleCare. (I wanted a second battery anyways)
    Hope this helps.

  • Problems with classpath and oracle drivers

    Hi, i've developed an application that uses oracle drivers "classes12.jar" using Eclipse. While i was writing the code, i manually specified the classpath which contains "classes12.jar" file using Eclipse's own configuration tool and now it works perfect when i run it under Eclipse. I then tried to run it using dos prompt but when i tried to run the program i got "ClassNotFoundException: oracle.jdbc.driver.oracledriver". As you can guess, i thought that was a classpath issue so i set the classpath as follows:
    set CLASSPATH=C:\oracle\ora92\jdbc\lib
    where the directory "C:\oracle\ora92\jdbc\lib" is the one that contains classes12.jar file which i had also specified using Eclipse before.
    After that, i recompiled my application and tried to launch it as follows:
    ->javac Test.java
    ->java Test
    But then i got the following runtime error:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test
    Since this happened after i manually set CLASSPATH variable, this has something to do with that. What should i do now? Thanks in advance.

    Correct - the JAR has to be spelled out in the CLASSPATH.
    I'd also recommend that you not set CLASSPATH using a system environment variable. Better to use the -classpath parameter on javac.exe when you compile and java.exe when you run. Put the command into a script that you invoke when you start up the app. It'll document the fact that it's needed for anyone that comes after you and relieves you from having to change the CLASSPATH on machines you deploy to. And, for good measure, app servers like Tomcat and WebLogic totally ignore the system CLASSPATH. I don't even have one.
    %

Maybe you are looking for