Cannot run program "keytool": java.io.IOException

Hi,
I would like to follow the procedure to change the master password
of glassfish server hosting APEX listener
using the change-master-password subcommand, but the utility keytool
is not found:
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> /opt/glassfish3/bin/asadmin
/opt/glassfish3/bin/asadmin
Use "exit" to exit and "help" for online help.
asadmin> change-master-password mydom01
Enter the current master password> changeit
Enter the new master password> changedit
Enter the new master password again> changedit
Cannot run program "keytool": java.io.IOException: error=2, No such file or directory
Command change-master-password failed.
asadmin>
Command multimode failed.
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config>
All of glassfish is running fine apart from this.
keytool could be found in /usr/java/latest/bin/keytool.
Do we need to have this in the path? There is no requirement in the
install guide for this, nor did the RPM installation adjust the system
path accordingly.
Hopefully someone can tell my how things ought to be regarding keytool?
Thanks, Tom

Hi Tom,
the procedure to change the master password of glassfish server hosting APEX listener... sounds more like a GlassFish-related topic to me. I guess you'd get the best answers for such questions in a GlassFish-related forum...
For what it's worth, I'll try my best anyway:
Cannot run program "keytool": java.io.IOException: error=2, No such file or directoryThis seems to be a pretty clear error message: keytool , which is probably used to manage the keys for GlassFish users, wasn't found. This means, you're either running on an OS that is not officially certified for GlassFish, or you GlassFish hasn't been configured properly.
You ran
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java... which indicates you assume your GlassFish is running without JAVA_HOME being set. If that's true, I'd begin to setup you GlassFish properly starting with that parameter.
Anyway, you also found out that
keytool could be found in /usr/java/latest/bin/keytool.... which is not +/usr/bin+ and hence probably not in the global search path of the user on whose behalf your GlassFish is running. So, you could either create a link-set[*] for +/usr/bin/keytool+ to (finally) point to +/usr/java/latest/bin/keytool+, or you setup JAVA_HOME to be +/usr/java/latest+ .
[*] Note that depending on your OS there might be more than one stage of indirection, e.g. my Ubuntu has +/usr/bin/java+ pointing to +/etc/alternatives/java+ which is pointing to +/usr/lib/jvm/java-6-sun/jre/bin/java+ where +/usr/lib/jvm/java-6-sun/+ is pointing to the directory containing the actual JDK to be used. You'll probably find something like that on your system as well. My Ubuntu box has a link for +/usr/bin/keytool+, so I get that when running "which keytool".
Do we need to have this in the path? There is no requirement in the install guide for this, nor did the RPM installation adjust the system path accordingly.Again, this is not a GlassFish forum.
I hope my hints help you solve your problem. If they don't, please choose the appropriate forum for your next post on that topic. And I guess, giving some more information on your OS and how you manage your JDK (and which version you use) will help people there to help you.
Thanks,
Udo

Similar Messages

  • Java.io.IOException: Cannot run program "ant"

    Hi all,
    I'm running a Job in Hudson.
    I build this job from a Hudson Master Server but the job is built in a Hudson Linux Node.
    This is the result:
    Started by user builder
    Building remotely on Linux-Node
    Updating http://150.200.20.200:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    Updating http://150.200.200.200:8000/mvtv_all/DESCOS/KaluModules/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
    At revision 529
    no change for http://159.200.300.20:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches since the previous build
    no change for http://159.230.300.20:8000/mvtv_all/DESCOS/KaluModules/branches since the previous build
    No emails were triggered.
    [bt] $ ant -file build.xml -DSUBSYSTEM=ALL -DTARGET=makeBuild -DCRLIST= -DOWNER= -DbuildTool.patch.release=$RELEASE -DbuildTool.system=$SYSTEM -DbuildTool.patch.type=$PATCH_TYPE -DbuildTool.subsystem=ALL -DbuildTool.buildRules=pkgBuild -DbuildTool.dynamicView=$WORKSPACE/ALL -DbuildTool.compilationRules=compile -DbuildTool.patch.name=$PATCH_NAME makeBuild
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
    java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    at hudson.Proc$LocalProc.<init>(Proc.java:192)
    at hudson.Proc$LocalProc.<init>(Proc.java:164)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
    at hudson.Launcher$ProcStarter.start(Launcher.java:274)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:794)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:768)
    at hudson.remoting.UserRequest.perform(UserRequest.java:114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:283)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: java.io.IOException: error=2, No existe el fichero o el directorio
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
    ... 15 more
    Do you know something about this issue?
    Thanks and Regards

    No, and this is not the Hudson forums either. But see this error?
    FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?Try posting that in Google and see what you get. That's basic misery solution research 101. Post the error in Google. 999/1000 times someone has already run into it before. Please learn from their experiences by reading through them.

  • Exception "Cannot run program" while using ProcessBuilder class

    Hi Java-Folks,
    I try to start a program within a Java application using the ProcessBuilder class. This is the first time I use ProcessBuilder so I do not have any deep knowledge of it. Here is a snippet of my code:
    static void connectToHost(String Host) {
    ProcessBuilder pb = new ProcessBuilder("connect.exe"), Host);
    Map<String, String> env = pb.environment();
    env.put("SHELLWIDTH", "64");
    pb.directory(new File("C:\\MyProgram\\ExApp\\shell"));
    try (
    Process p = pb.start();
    } catch (IOException ex) {
    Logger.getLogger(ShellUtil.class.getName()).log(Level.SEVERE, null, ex);
    }Using this method I get an IOException which says *"Cannot run program "connect.exe" (in directory "C:\MyProgram\ExApp\shell"): CreateProcess error=2, The system couldn't find the specified file"*
    Does anybody have an idea why this is not working? I tried to start another application like "notepad.exe" and that works fine. So it seems related to the fact
    that the program I want to start is only available in a certain directory and not via the PATH env-variable.
    I would appreciate any help or hint :-)
    Regards,
    Lemmy

    Okay I guess I misinterpreted the JavaDocs regarding the directory method. The exception message is a little bit confusing too, because it seems like Java tries to find the Application within the specified
    working directory.
    I tried to use the full path with the ProcessBuilder constructor and it looks like this variant is working. I still have some trouble with the application itself but I was able to start another program which is
    not in the PATH var, using the full path to the executable.
    Thanks for the help so far.
    Bye
    Lemmy

  • ProcessBuilder: Cannot run program

    Hello,
    In my code I need to run a windows application. Through the Command Prompt I would type:
    C:\>"C:\Documents and Settings\Simpatico\My Documents\Woerter Speichern Files\changeBackgroud" "C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\testimage.bmp"In Java I wrote:
    ProcessBuilder pb = new ProcessBuilder("C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\changeBackground", C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\testimage.bmp);
              pb.directory(new File("C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files"));
              try {
                   pb.start();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();And I get:
    java.io.IOException: Cannot run program "C:\Documents and Settings\Simpatico\My Documents\Woerter Speichern Files\changeBackground": CreateProcess error=2, The system cannot find the file specified
         at java.lang.ProcessBuilder.start(Unknown Source)The problem is with executing the application, changeBackground in the first place, and not the parameter passing.

    simpatico_gabriele wrote:
    1. They are not. Please qualify ur claim.All right, I will. Your code is like this:
    ProcessBuilder pb = new ProcessBuilder("C:\\Documents and Setting...{code}
    The string you pass as a parameter there starts with the letter C, not with a quote. You still don't believe it? Try this:
    {code}System.out.println("C:\\Documents and Setting");{code}
    Notice how what's printed out doesn't start with a quote?
    It's really annoying how you ask for help and then flatly reject it when it's given. This is the last help I will be giving you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • OWB - Workflow- Cannot run program "/usr/bin/perl": CreateProcess error=2,

    Hi All,
    I am using OWB 11gR2 and I am getting "perl" location error after start workflow for any dimension or fact.
    *Cannot run program "/usr/bin/perl": CreateProcess error=2, The system cannot find the file specified
    The log is below. I am using Windows 2008 R2 OS and 11gR2 DB. The perl path is set in the environment variables and I can run the perl.exe from command line.
    Why OWB is looking for the Unix base path "/usr/bin/perl": is a question for me.
    If anybody knows the issue please guide me.
    Thanks
    OUBIWF_D_DEVICE_ACTIVITY_TYPE                                        2012-07-04 16:57:37.0     4
    Parameters                                             
    OUBIWF_D_DEVICE_ACTIVITY_TYPE:FILEMGR_PRE                              1          2012-07-04 16:57:38.0     2
    Parameters                                             
    RPE-02229: The following debug information was collected:                                             
    RPE-02230: Debug Information: os.name = Windows Server 2008 R2                                             
    RPE-02230: Debug Information: os.version = 6.1                                             
    RPE-02230: Debug Information: os.arch = amd64                                             
    RPE-02230: Debug Information: user.name = INT-A-MDM-01$                                             
    RPE-02230: Debug Information: user.dir = C:\product\11.2.0\dbhome_3\owb\bin\win32                                             
    RPE-02230: Debug Information: argv.arg0 = /usr/bin/perl                                             
    RPE-02230: Debug Information: argv.arg1 = /spl/intbase/DB/tools/filemgr/splfilemgr.plx                                             
    RPE-02230: Debug Information: argv.arg2 = -l                                             
    RPE-02230: Debug Information: argv.arg3 = /spl/BIDevelopment/bi2400db                                             
    RPE-02230: Debug Information: argv.arg4 = -n                                             
    RPE-02230: Debug Information: argv.arg5 = D_DEVICE_ACTIVITY_TYPE_EXT.DAT                                             
    RPE-02230: Debug Information: argv.arg6 = -p                                             
    RPE-02230: Debug Information: argv.arg7 = 1                                             
    RPE-02230: Debug Information: argv.arg8 = -s                                             
    RPE-02230: Debug Information: argv.arg9 = S                                             
    RPE-02230: Debug Information: argv.stdin =                                             
    RPE-02230: Debug Information: USERPROFILE = C:\Windows\system32\config\systemprofile                                             
    RPE-02230: Debug Information: JAVAPATH = C:\product\11.2.0\dbhome_3\jdk6                                             
    RPE-02230: Debug Information: NODEID = 1                                             
    RPE-02230: Debug Information: IAS_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: SystemDrive = C:                                             
    RPE-02230: Debug Information: RTHOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: Path = C:\product\11.2.0\dbhome_3\bin;C:\product\11.2.0\dbhome_3\jdk6\jre\bin\client;C:\product\11.2.0\dbhome_3\jdk6\jre\bin;C:\product\11.2.0\dbhome_3\owb\bin\admin;C:\Windows\system32                                             
    RPE-02230: Debug Information: CONNECT_SPEC = 10.34.32.136:1521:MDM                                             
    RPE-02230: Debug Information: PROCESSOR_REVISION = 1a05                                             
    RPE-02230: Debug Information: OCM_ORACLE_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: USERDOMAIN = WORKGROUP                                             
    RPE-02230: Debug Information: ALLUSERSPROFILE = C:\ProgramData                                             
    RPE-02230: Debug Information: TMP = C:\Windows\TEMP                                             
    RPE-02230: Debug Information: CommonProgramFiles = C:\Program Files\Common Files                                             
    RPE-02230: Debug Information: PROMPT = $P$G                                             
    RPE-02230: Debug Information: PROCESSOR_LEVEL = 6                                             
    RPE-02230: Debug Information: JVM_OPTIONS = -Xmx768M                                             
    RPE-02230: Debug Information: LOCALAPPDATA = C:\Windows\system32\config\systemprofile\AppData\Local                                             
    RPE-02230: Debug Information: COMPUTERNAME = INT-A-MDM-01                                             
    RPE-02230: Debug Information: SystemRoot = C:\Windows                                             
    RPE-02230: Debug Information: ORA_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: USERNAME = INT-A-MDM-01$                                             
    RPE-02230: Debug Information: APPDATA = C:\Windows\system32\config\systemprofile\AppData\Roaming                                             
    RPE-02230: Debug Information: ProgramData = C:\ProgramData                                             
    RPE-02230: Debug Information: PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC                                             
    RPE-02230: Debug Information: ORACLE_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: RTUSER = OWBSYS                                             
    RPE-02230: Debug Information: ProgramFiles(x86) = C:\Program Files (x86)                                             
    RPE-02230: Debug Information: TEMP = C:\Windows\TEMP                                             
    RPE-02230: Debug Information: OEM_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: ProgramFiles = C:\Program Files                                             
    RPE-02230: Debug Information: JDK_HOME = C:\product\11.2.0\dbhome_3\jdk6                                             
    RPE-02230: Debug Information: OCM_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: ProgramW6432 = C:\Program Files                                             
    RPE-02230: Debug Information: PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 26 Stepping 5, GenuineIntel                                             
    RPE-02230: Debug Information: STARTUP_TYPE = -manual                                             
    RPE-02230: Debug Information: PROCESSOR_ARCHITECTURE = AMD64                                             
    RPE-02230: Debug Information: OS = Windows_NT                                             
    RPE-02230: Debug Information: FP_NO_HOST_CHECK = NO                                             
    RPE-02230: Debug Information: CommonProgramW6432 = C:\Program Files\Common Files                                             
    RPE-02230: Debug Information: ORACLE_SID = mdm                                             
    RPE-02230: Debug Information: DISCOVERER_ALLOW_DB_CONNECT_STRING = YES                                             
    RPE-02230: Debug Information: OWB_HOME = C:\product\11.2.0\dbhome_3                                             
    RPE-02230: Debug Information: NUMBER_OF_PROCESSORS = 2                                             
    RPE-02230: Debug Information: PUBLIC = C:\Users\Public                                             
    RPE-02230: Debug Information: PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\                                             
    RPE-02230: Debug Information: CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files                                             
    RPE-02230: Debug Information: ComSpec = C:\Windows\system32\cmd.exe                                             
    RPE-02235: The operating system has reported that it cannot execute the requested command. This may be because the command or the parameters are invalid, or that the command is shell command. Any result code return is specific to the operating system. Debug information has been produced.                                             
    Cannot run program "/usr/bin/perl": CreateProcess error=2, The system cannot find the file specified                                             
    OUBIWF_D_DEVICE_ACTIVITY_TYPE:EMAIL_FILEMGR                              1          2012-07-04 16:57:40.0Parameters                                             
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at "SYS.UTL_TCP", line 17
    ORA-06512: at "SYS.UTL_TCP", line 267
    ORA-06512: at "SYS.UTL_SMTP", line 161
    ORA-06512: at "SYS.UTL_SMTP", line 197
    ORA-06512: at line 8

    Hi There
    Am experiencing the same issue. Did you manage to resolve it, is so can you advice what the resolution is. Thanks
    Regards,
    Kayode

  • Error: Cannot run program "C:\Oracle\Middleware\jdk160_21\jre\bin\javaw.exe

    Hi
    I have created a sample Fusion Web Application(ADF) and created a test.jsp in viewcontroller with few components. I have started the integrated weblogic server and started successfully, but when I run test.jsp it is giving me the below error
    Error: Cannot run program "C:\Oracle\Middleware\jdk160_21\jre\bin\javaw.exe" (in directory "C:\Documents and Settings\chowdamr\Application Data\JDeveloper\system11.1.1.4.37.59.23\o.jdeveloper\DefaultWorkspace"): CreateProcess error=267, The directory name is invalid.
    Initially this page is working successfuly.
    Please tell me whats the problem.
    Edited by: 858782 on May 13, 2011 5:28 AM

    There are some problems when JDev's system directory (e.g. the \system11.1.1.4.37.59.23 directory) is in a path that contains spaces (as it is in your case - C:\Documents and Settings\...). Move the system directory to a path without spaces and try again. The simplest way to move it is to start JDeveloper in a "single user" mode (use <tt>jdeveloper.exe -singleuser</tt>) which will create the system directory within JDev's home directory. Of course, if your JDeveloper is installed in a path containing spaces, it will not work either (for example, if JDev is in C:\Program Files\...).
    Have a look here for a more sophisticated approach for moving the system directory to another location:
    http://technology.amis.nl/blog/8387/change-the-jdeveloper-system-directory
    Dimitar

  • Running Program through Java

    I want to write java program :-
    That java program run a exe file.
    I give a input file for that exe file.
    the output write in text file.

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Trying to run programs with java 1.4.2_07 after upgrading Eclipse

    Hi All,
    I'm using Eclipse version 3.1.0 and java 5.0 (1.5.0_03). I changed the JRE of a program back to 1.4.2_07, but when i try to run it i get this:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: controller/Controller (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)What the %^#@ ? Will appreciate any help.
    Regards,
    snayit

    Also, another thing people may want to try. A coworker was having a problem where she kept getting the unsupported major minor version error from eclipse after upgrading to the latest version of java.
    All the configuration settings were correct, pointing to the latest vm. I tried starting eclipse with the parameter
    -vm "C:\Program Files\Java\jdk1.5.0_04\jre\bin\javaw.exe"
    and it worked just fine. Without this, it was apparently finding some conflict between jdk1.5 and the older jdk1.4.
    IDE's are nice, but I find configuring them after an upgrade to be exremely painful.

  • CAN COMPILE BUT CANNOT RUN PROGRAM

    I am finally able to compile my program, I have the extensions .class, when I try to run the program I get an error message "main"java.lang.noclassdef
    after message appears after I type java Saluton or whatever program I am trying to run.
    Any suggestions, someone justed I use textpad, but I don't think this has anything to do with not being able to run programs, I am using windows 98 second edition.

    This is a CLASSPATH problem.
    For example, if your .class file is in the directory C:\javaclasses then you would set the CLASSPATH environment variable to that using:
    set CLASSPATH=C:\javaclasses
    Add this to your autoexec.bat and reboot so you don't have to type this every time you open a DOS prompt.
    You may want to add the current directory, ., to the list of directories (use ; to separate directories).
    set CLASSPATH=.;C:\javaclasses
    If your class is part of a package, you have to use the directory that is the parent of the packages' directories.

  • Stop Running Programs with Java

    Does anyone know how to stop a non-Java program that is currently running on a PC?

    Hi,
    did you started the programm from your java app with proc = Runtime.getRuntime.exec()?
    If yes, you can kill it with
    proc.destroy()If not, there is no platform-independent way to do it.
    Best regards,
    Martin

  • Batch user cannot run program

    I have setup program RSWUWFML2 to run every 15 minutes through SM36 (Background Job Processing).  However, I cannot get our Batch user to run it.  When I assign any other user with proper authorization to run the program, it works.  But whenever I change the user to our Batch user, the program does not want to run.
    This is not an authorization issue because our Batch user has all the authorizations the other users have that are able to run the program.  Why would a Batch user not be able to run the program?
    All help is appreciated!

    Could it be that it's your own user that is not allowed to select batch user for the job. Use ST01 (trace authorization) to make sure.

  • OSX 10.4.2 tried to update itunes now cannot run program

    I know it's an old computer (iBook, 2003)--but it has to hang in there for a few more months! Tried to update the iTunes, for the sole purpose of using the ipod, and it let me--but now a message states it can't run the program at all. Tried CDs--opens Quicktime. Cannot update QT b/c computer's too old and slow. I would love to update it to something before 7.3...ideas?
    Mac   Mac OS X (10.4.2)  

    It's an upgrade as it is! Recently the hard-drive crashed and I upgraded to the current OSX 10.4.2. I don't have enough memory to go any higher. I'm looking for a new Mac--but my paychecks can't handle that yet.
    Mac   Mac OS X (10.4.2)   iBook

  • Run program from Java

    Hi all,
    I need to run Cygwin (program which executes shell scripts on Windows) from Java,
    and run some script with Cygwin. Is it possible with Runtime.exec() run Cygwin and
    pass them some script to run?

    I also run into the same problem.
    My problem is i want to run Windows Xp's cmdshell throught java and pass it some parameters.
    I know there is a third party jar which can do it.
    So there must be some way,although maybe not too easy.

  • Error while trying to run program using java.exe

    First of all I'd like to apoligize if this thread already exists here somewhere.. I've spent the last hours Googling and searching the forums for an answer, but haven't found one, so I posted a topic..
    The problem is the following:
    I'm using Netbeans 5.5 with JDK1.6.0. When I build/run a Java application in this IDE, I get no errors whatsoever..
    But, when I try to run it from the prompt, using following code (I copied the .class file into the same directory as the .java file)
    java -classpath . main.javaI get the following errors:
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Sour
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Metho
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)I'm quite sure that the problem is something I'm simply missing, since Netbeans runs everything without troubles..
    Anyone an idea how I could solve this problem? (Trust me, I checked the net, lots of people with this prob, but no decent solutions given)
    Thanks in advance (and once again sorry if this thread already existed).
    Greetings,
    Tribio

    Oh, forgot the first error line indeed, thanks for pointing that out.
    D:\Tribio\JPF\src\jpf>java -cp . main
    Exception in thread "main" java.lan.NoClassDefFoundError: main (wrong name: jpf/Main)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Sour
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Metho
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Sourc
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)And concerning the package question. In the code of main.java I define the package jpf as follows:
    package jpf;Hateful problem, and I so wanna use the prompt java once in a while instead of having to rely on NetBeans..
    And you're not at all looking at it too simple, any input on the matter is appreciated.. :)

  • Java.io.IOException: SysCall : bind() failed

    Hello -
    I am the support engineer for an OEM Itronix of a rugged handheld device with PXA25x (ARM4VI) processor that is running WM 5.0. Potential customer in Ireland has sent me the following log reporting that the main problem is probably the java.io.IOException: Syscall : bind() failed. I have attached the actual log file below.
    My question is: 1. how can I best debug this issue? I doubt that anything is using port 45000? Unless customer unknowing is loading something before hand that would be using this port? I ran a netstat program on the ports of my device and by default there is nothing in our handheld that uses anything remotely close to port 45000.
    2. I'm not certain as to what version of Creme they are using - I suspect it must be Creme 2.7a as they claim they have run this on another WM 5.0 device and sent me logs showing that it did not have a java.io.IOException: Syscall : bind() failed exception - only our handheld failed with this exception evidently?
    Note that I don't have the MI System to attempt to recreate this, nor do I have any prior experience with SAP MI (although that may change real fast). I do have DB2e and Creme and have used both in the past.
    Can anyone give me some suggestions and help on how to help debug this on our device?
    Thanks Neal Davis
    Sorry about the long log - but maybe it will help show big picture:
    [20060101 14:49:24:000] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20060101 14:49:24:000] I [MI/API/Logging           ] ***** Mobile Engine version: MI 25 SP 18 Patch 00 Build 200607272043
    [20060101 14:49:24:000] I [MI/API/Logging           ] ***** Current timezone: PST
    [20060101 14:49:37:121] E [MI/API/Services          ] MultiObjectFileStorage: Error in data read access to mapping file /MI/data/LastSuccessfulSync/datreg.obj - Generating initial mapping (root cause: /MI/data/LastSuccessfulSync/datreg.obj [java.io.FileNotFoundException])
    [20060101 14:49:49:050] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.ApplicationManager.registerInboundProcessors()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    [20060101 14:49:51:039] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.ApplicationManager.registerInboundProcessors()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    [20060101 14:49:53:824] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    [20060101 14:51:53:152] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.mi.systemnews.NewsImpl.create()
         at com.sap.ip.mi.systemnews.StartListener.userLoggedOn()
         at com.sap.ip.me.core.UserManagerImpl.fireLogon()
         at com.sap.ip.me.core.UserManagerImpl.logOnUser()
         at com.sap.ip.me.core.UserManagerImpl.logOnUser()
         at com.sap.ip.me.apps.jsp.LoginServlet.doHandleEvent()
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe()
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet()
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doPost()
         at javax.servlet.http.HttpServlet.service()
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service()
         at javax.servlet.http.HttpServlet.service()
         at org.apache.tomcat.core.ServletWrapper.doService()
         at org.apache.tomcat.core.Handler.service()
         at org.apache.tomcat.core.ServletWrapper.service()
         at org.apache.tomcat.core.ContextManager.internalService()
         at org.apache.tomcat.core.ContextManager.service()
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection()
         at org.apache.tomcat.service.TcpWorkerThread.runIt()
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
         at java.lang.Thread.run()
    [20060101 15:00:39:734] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.ccms.remotetracing.RemoteTracingInboundProcessor.registerItself()
         at com.sap.ip.me.ccms.remotetracing.RemoteTracingListener.actionPerformed()
         at com.sap.ip.me.sync.SyncEventRegistryImpl.fireSyncEventNotifierMethod()
         at com.sap.ip.me.sync.SyncManagerImpl.raiseSyncEvent()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run()
         at java.lang.Thread.run()
    [20060101 15:00:47:332] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/0.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.sync.LogSenderInboundProcessor.registerItself()
         at com.sap.ip.me.sync.LogSender.sendLogToBackend()
         at com.sap.ip.me.sync.LogSender.actionPerformed()
         at com.sap.ip.me.sync.SyncEventRegistryImpl.fireSyncEventNotifierMethod()
         at com.sap.ip.me.sync.SyncManagerImpl.raiseSyncEvent()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run()
         at java.lang.Thread.run()
    [20060101 15:00:58:958] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/1.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCheckerInboundProcessor.registerItself()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoListener.actionPerformed()
         at com.sap.ip.me.sync.SyncEventRegistryImpl.fireSyncEventNotifierMethod()
         at com.sap.ip.me.sync.SyncManagerImpl.raiseSyncEvent()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run()
         at java.lang.Thread.run()
    [20060101 15:01:11:889] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/1.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCollectorInboundProcessor.registerItself()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCollector.createConfigInfoContainer()
         at com.sap.ip.me.ccms.configinfo.ConfigInfoCheckerInboundProcessor.process()
         at com.sap.ip.me.sync.SyncManagerImpl.processSingleContainer()
         at com.sap.ip.me.sync.SyncManagerMerger.processInboundContainers()
         at com.sap.ip.me.sync.SyncManagerImpl.processSyncCycle()
         at com.sap.ip.me.sync.SyncManagerImpl.syncForUser()
         at com.sap.ip.me.sync.SyncManagerImpl.processSynchronization()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend()
         at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend()
         at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run()
         at java.lang.Thread.run()
    [20060101 15:07:01:133] I [MI/API/Logging           ] ***** LOG / TRACE SWITCHED ON
    [20060101 15:07:01:133] I [MI/API/Logging           ] ***** Mobile Engine version: MI 25 SP 18 Patch 00 Build 200607272043
    [20060101 15:07:01:133] I [MI/API/Logging           ] ***** Current timezone: GMT
    [20060101 15:07:12:071] E [AppLog/MI/API/Services   ] java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
    java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectInputStream.readObject()
         at java.io.ObjectInputStream.defaultReadObject()
         at java.io.ObjectInputStream.inputObject()
         at java.io.ObjectInputStream.readObject()
         at java.io.ObjectInputStream.readObject()
         at com.sap.ip.me.api.services.IOUtils.readSerializedObjectFromFile()
         at com.sap.ip.me.api.services.IOUtils.readHashtableFromDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.<init>()
         at java.lang.Class.newInstance()
         at com.sap.ip.me.api.conf.Configuration.createInstanceForType()
         at com.sap.ip.me.api.conf.Configuration.getSingletonInstanceForType()
         at com.sap.ip.me.api.sync.InboundProcessorRegistry.<clinit>()
         at com.sap.ip.me.smartsync.core.SmartSyncRuntimeManager.initializeSmartSyncFramework()
         at com.sap.ip.me.core.FrameworkInitializer.initSmartSync()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    Martyn Lewis (This is different) ??????????????????????????????
    [20060101 15:07:59:692] E [MI/ComServer             ] Exception while running communication server:
    java.io.IOException: SysCall : bind() failed
         at java.net.PlainSocketImpl.bind()
         at java.net.ServerSocket.<init>()
         at java.net.ServerSocket.<init>()
         at com.sap.ip.me.core.CommunicationServer.run()
         at java.lang.Thread.run()
    [20060101 15:08:04:639] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/1.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.ApplicationManager.registerInboundProcessors()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    [20060101 15:08:07:836] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/1.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.ApplicationManager.registerInboundProcessors()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()
    [20060101 15:08:10:780] E [AppLog/MI/API/Services   ] Problems while saving /MI/sync/inboundProcessors/1.value
    java.io.NotSerializableException: com.sap.ip.me.api.services.MEResourceBundle
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at java.io.ObjectOutputStream.defaultWriteObject()
         at java.io.ObjectOutputStream.outputObject()
         at java.io.ObjectOutputStream.writeObject()
         at com.sap.ip.me.api.services.IOUtils.serializeObjectToFile()
         at com.sap.ip.me.api.services.IOUtils.saveHashtableToDirectory()
         at com.sap.ip.me.sync.InboundProcessorRegistryImpl.register()
         at com.sap.ip.me.core.FrameworkInitializer.initializeFramework()
         at com.sap.ip.me.core.FrameworkInitializer.main()
         at com.sap.ip.me.core.Startup.main()

    Thanks Jo for your input - I have investedigated and still not certain of what is really going on and if this applies or not.
    I did get a screen shot back from the customer and here is what it looks like (had to type out as I don't see a way to post and image to this forum):
    Internet Explorer
    Screen Shot
    SAP
    Synchronization Log
    -Synchroniztion started
    -Connection set up (without proxy) to: http://
    headsap001s:50000/meSync/servlet/meSync?
    ~sysid=mob&
    -Successfully connected with server.
    -Processing of inbound data began.
    -Synchronisation problems: Transport-layer (http) sync
    exception raised (root cause: Exception while
    synchronizing (java.net.SocketException: Remote
    Connection Closed: Remote connection closed))
    One suspicious thing I noticed about the screen shot above is Syncronization or Syncronizing is always spelled with a "z" except in one case above is spelled with an "s" - the UK spelling method? I check the screen shot several times and this is not a typo on my part it is how it is in the actual screen shot - almost if someone changed the log file being reported to the screen?
    Can someone comment on the error, has this been seen by anyone else and was there a solution?
    Also how difficult is it to hook up the entire solution so that I can recreate at my desk? I have DB2e and Java Creme (3.28). I need SAP MI I guess and probably need to set up sometime of server so I can replicate the whole process of installation and synchronization. What is the minimum I can do to replicate this and can I get a SAP MI system as a demo to put this whole puzzle together?
    Thanks so much for any input anyone can provide on above.
    Neal Davis

Maybe you are looking for

  • Problem with Counter in Query

    Hi Experts, There is a problem in my query output. I have a CKF for sales documents number created with replacement path which gives the correct count of number of Sales documents. But the req here is to create two more counters which will be countin

  • Error when trying to use Automate Merge to HDR... in Photoshop CS4

    Hello, I am using Photoshop CS4 on a new MacBook Pro running 10.5.6. If i select "Automate>Merge to HDR..." or "Automate>Photomerge...", i get an alert with an error: « Error 48: File or folder does not exist. Line: 38 -> $.evalFile(g_StackScriptFold

  • Photoshop won't open in raw my new camera nikon750

    Just bought a nikon750, it won't open raw file in photoshop. what can i do?

  • Cannot set user query to view "{0}" because it is a destination in a view link

    Hi 11.1.1.7 - I have 2 programatically view objects. I have created a viewLink between them and I am getting the error: Cannot set user query to view "MyView2" because it is a destination in a view link. Does anyone know what are the methods I need t

  • Problems starting WLS 6.1 on solaris...

    I have installed WLS in the sun solaris machine and have problems starting up a mydomain test server. I am getting: weblogic.management.configuration.ConfigurationException: - with nested exception: [weblogic.security.internal.FileUtilsException: cou