SDK - Win2K problem

Whenever I code java under Win2K i get the following error on every program:
Exception in thread "main" java.lang.NoClassDefFoundError: <classname>
however, when i run under linux the programs run without a hitch. i first had this problem with java 1.3 so i uninstalled it and upgraded to 1.4 but i still have the problem.
i also get compile errors when i try and create an instance of an external class in a program under Win2K, but when i run under linux, again the code is accepted fine.
i have compiled from the command line (instead of from third party editors) and i still get the errors so i know its not a problem with configuring the editor i choose to use.
any ideas? this is really important to me otherwise i cannot program under windows :-(

It's really strange... is the classpath properly set?
You use the -cp listing the paths in which your classes reside.
Notice also that under Windows the path separator char is ; (semicolon), and not : (colon) as it is in *X, and file separator is backslash, and not slash...
Example:
java -cp.\;..\myclasses;d:\javalibs\common.jar com.monky.myapp.MyApplicaton

Similar Messages

  • Adobe photoshop sdk download problem

    Dear Experts,
    Today I tried to download Adobe Photoshop SDK for window by creating an account on Adobe site. But once I login and try to download the relevant file ,it showed me page like "You are not autorised to view the page" or It won't redirect me to download page.I don't know whats the problem. Can't I download SDK free for personal use.
    Thanks & Regards
    Vikas

    Have you tried applying for permission? All I had to do was ask.
    Cheers.
    Glenn Chan
    http://www.colormancer.com/
    http://www.free-photoshop-plugins.com/
    http://colorcorrection.info/

  • J2EE 1.4 beta SDK install problem on Linux RH 7.2 ?

    Hello everybody
    Thank for your reading
    I have installed J2EE SDK 1.4 beta on Linux RH 7.2, my installed J2SE is 1.4.0_01, but the J2EE installer reported that: Exception in the "main" thread: java.lang.io.NoDefClassFound: J2EE.
    I had defined JAVA_HOME. I don't know how to sovle this problem.
    Please help me. thank you
    [email protected]

    Hi, I'm fairly new with Linux.... I've downloaded the self extracting 1.4.0 bin file... how do I istall it now? I'm not sure what command to use for the installation to occur.
    I'm installing Tomcat as well...
    Is there anywhere I can go to see step by step instructions to install these products?
    Thank you in advanced!

  • JRE or SDK install problem - installing in non-std dir

    I'm encountering a problem trying to install either the JRE or SDK into a non-standard directory (one that's not the default of c:\j2sdk1.4.2_01 or what have you). This is occuring with both 1.4.2_01 and 1.4.2_02.
    In this case, I'm trying to install it in a directory similar to c:\progra~1\compan~1\produc~1\jre. (Short names b/c I can't figure out how to do long paths silently, but that's a whole different issue).
    The install nears the end and then presents the user with a "Java(TM) Update (1.4.2_01-b06) cannot be installed on this machine because the Java(TM) Virtual Machine is currently running. Please close all running Java(TM) applications, especially browsers. [RETRY] [CANCEL]" message.
    There's definitely not a JVM running at the moment. If I click Cancel, the install finishes up and there is a workable install there. But why the prompt? Since this is a silent install within another install, it will cause concern for my customers.
    The last few lines of my setup file:
    Action start 19:16:59: removesdkpackfiles.
    Action ended 19:17:00: removesdkpackfiles. Return value 1.
    Action start 19:17:00: unzipdemos.
    Action ended 19:17:15: unzipdemos. Return value 1.
    Action start 19:17:15: copysrczip.
    Action ended 19:17:19: copysrczip. Return value 1.
    Action start 19:17:19: patchsdk.
    Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action patchsdk, location: C:\Program Files\Common Files\Java\Update\Base Images\j2sdk1.4.2-b28\patch-j2sdk1.4.2_02-b03\patchsdk.exe, command: -s "C:\PROGRA~1\COMPAN~1\PRODUC~1\jre\"
    Action ended 19:17:35: patchsdk. Return value 3.
    Action ended 19:17:35: INSTALL. Return value 3.
    === Logging stopped: 10/23/2003 19:17:35 ===
    The command line to kick off the install:
    j2sdk-1_4_2_02-windows-i586-p.exe /s /v\"/qn ADDLOCAL=ALL IEXPLORER=1 INSTALLDIR=c:\progra~1\compan~1\produc~1\jre /L \jresetup.log"
    Has anyone encountered this? I've narrowed it down to the fact that it's an install into a directory that's not the default. If I run the install without specifying the INSTALLDIR, everything works fine. Help is appreciated!

    See the original posting and comments in http://forum.java.sun.com/thread.jsp?forum=14&thread=462167 and the bug http://developer.java.sun.com/developer/bugParade/bugs/4953793.html
    Rebooting has no effect whatsoever on this problem; even if you can now get the SDK installed, a non-administrative account won't be able to use the JRE in it, nor will the user be able to use the other JRE installed in the default location.

  • 1.4.2_03 SDK install problem (WinXP SP1)

    I just installed j2sdk 1.4.2_03 (freshly downloaded), and installed on my WinXP SP1 laptop.
    * The install croaked at the point at which it tried to install the standalone JRE (threw up an error dialog, and if you hit OK on that, it exits the install without installing the JRE).
    * At that point, if I do "c:\j2sdk1.4.2_03\bin\java -version" (to check the version of the JRE contained in the SDK), it says "build 1.4.2-b28" (!!!). (I don't have any other JREs installed anywhere, and verified that it was indeed picking up the JRE from c:\j2sdk1.4.2_03\jre.)
    Did the 1.4.2_03 SDK go out with a bad JRE bundled? The 1.4.2_02 SDK correctly identifies itself (java -version) as "build 1.4.2_02-b03", and I've uninstalled everything and rolled back to that version of both the JRE and SDK, and everything works fine now (installs flawlessly).

    I am seeing the same problem with the j2sdk1.4.2_03 SDK and JRE installers. The error showing up on XP is "Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor." The install then exits with the package in a partial state and must be uninstalled. I also see the same problem when installing the older j2sdk1.4.2_03 SDK. Sounds like there is return state that is not being handled correctly in the package installer. Any ideas on how to fix this problem?
    Thanks
    Mark

  • SDK install problems on Redhat 7.1

    Hi
    I'm having problems getting the SDK to work on Redhat 7.1.
    My path variable is set up corectly, and get the following errors when I do a java -version
    java: /usr/bin/cut: No such file or directory
    usr/lib/jdk1.3.0_02/bin/i386/native_threads/java: error loading shared libraries: libjvm.so :cannot load shared object file: No such file or directory
    I've tried the following: copying libjvm.so to my /usr/lib directory and creating a "cut" file under /usr/bin. That took care of the error msgs, but now I get a core dump.
    Does anybody know why this is happening?? I running the same SDK on SuSE without any problems.
    Please help!!

    Lots of people talk about this problem with RedHat 7.1
    I know this sounds crazy but you could download jBuilder from borland and get a Sun jdk that works.
    That's what I did.
    I can't figure out what's up with the Sun download but look at the permissions.
    For the second guy
    If the file had a .bin on the end of it it's a bash script that the permission is screwed up on I bet ??
    You might want to move the file off the system and put it back as user. Don't know, seems like if you change the permission as root or run as root you might end up with an unusable jdk (permissions all screwed up) ???

  • AM SDK Install Problem - Two server config

    I am using the 2005Q4 release of JES on Solaris 10 zones. I have ds, web, and AM on first zone (zldap) and I have web, and the sdk installed on the second zone (zmail). No problems with the zldap appliations. The zldap apps start and run without issues.
    **zldap zone: /jes/ds, /jes/web, /jes/am (full install), and /jes/da
    **zmail zone: /jes/web, /jes/amsdk (AM SDK)
    I installed the AM SDK on the web server in the zmail zone and it starts up without any errors, however, when I try the"./amadmin -u amadmin -w *** -m http://zldap.domain.com" command it returns errors. I am also trying to install the uwc and get errors and I am assuming that there is a problem with the SDK.
    Below is a cut of my "silient" install file for the amconfig -s silent install. Am I using the wrong values for server?
    DEPLOY_LEVEL=4
    SERVER_PROTOCOL=http
    SERVER_NAME=zldap
    SERVER_HOST=$SERVER_NAME.domain.com
    SERVER_PORT=80
    ADMIN_PORT=8888
    DS_HOST=zldap.domain.com
    DS_DIRMGRPASSWD=*******
    ROOT_SUFFIX="o=isp"
    ADMINPASSWD=*******
    AMLDAPUSERPASSWD=*******
    COOKIE_DOMAIN=.domain.com
    AM_ENC_PWD="xxxxxxxxxxxxxxxxx"
    NEW_OWNER=root
    NEW_GROUP=root
    PAM_SERVICE_NAME=other
    WEB_CONTAINER=WS6
    BASEDIR=/jes/amsdk
    CONSOLE_HOST=$SERVER_HOST
    CONSOLE_PORT=$SERVER_PORT
    CONSOLE_PROTOCOL=$SERVER_PROTOCOL
    CONSOLE_REMOTE=true
    SERVER_DEPLOY_URI=/amserver
    CONSOLE_DEPLOY_URI=/amconsole
    PASSWORD_DEPLOY_URI=/ampassword
    COMMON_DEPLOY_URI=/amcommon
    DIRECTORY_MODE=4
    DS_PORT=389
    DS_DIRMGRDN="cn=Directory Manager"
    USER_NAMING_ATTR=uid
    ORG_NAMING_ATTR=o
    ORG_OBJECT_CLASS=sunismanagedorganization
    USER_OBJECT_CLASS=inetorgperson
    DEFAULT_ORGANIZATION=domain.com
    JAVA_HOME=/usr/jdk/entsys-j2se
    AM_REALM=disabled
    NEW_INSTANCE=false
    WS61_INSTANCE=https-zmail.domain.com
    WS61_HOME=/jes/web
    WS61_PROTOCOL=$SERVER_PROTOCOL
    WS61_HOST=zmail.domain.com
    WS61_PORT=$SERVER_PORT
    WS61_ADMINPORT=$ADMIN_PORT
    WS61_ADMIN="admin"
    Thanks for any suggestions.

    Yes, I can telnet to zldap ports 80, 443, and 389 from zmail. Note, zldap and zmail are Solaris 10 zones on a single V490.
    Here's my differences between the AMConfig.properties on each system. Not sure that to think about the diffs?
    root@mail# diff /tmp/AMConfig-zldap /tmp/AMConfig-zmail
    < com.iplanet.am.defaultOrg=o=isp
    com.iplanet.am.defaultOrg=domain.com,o=isp< com.iplanet.am.notification.url=https://zldap.domain.com:443/amserver/notificationservice
    com.iplanet.am.notification.url=http://zmail.domain.com:80/notificationservice
    < com.iplanet.am.rootsuffix=o=isp
    < com.iplanet.am.domaincomponent=o=isp
    com.iplanet.am.rootsuffix=domain.com,o=isp
    com.iplanet.am.domaincomponent=domain.com,o=isp< com.iplanet.am.admin.cli.certdb.prefix=https-zldap.domain.com-zldap-
    com.iplanet.am.admin.cli.certdb.prefix=https-zmail.domain.com-mail-< com.sun.identity.authentication.super.user=uid=amAdmin,ou=People,o=isp
    com.sun.identity.authentication.super.user=uid=amAdmin,ou=People,domain.com,o=isp< com.sun.identity.authentication.special.users=cn=dsameuser,ou=DSAME Users,o=isp|cn=amService-UrlAccessAgent,ou=DSAME Users,o=isp
    com.sun.identity.authentication.special.users=cn=dsameuser,ou=DSAME Users,domain.com,o=isp|cn=amService-UrlAccessAgent,ou=DSAME Users,domain.com,o=isp< com.iplanet.am.installdir=/jes/am/SUNWam
    < com.iplanet.am.install.basedir=/jes/am/SUNWam/web-src/services/WEB-INF
    com.iplanet.am.installdir=/jes/amsdk/SUNWam
    com.iplanet.am.install.basedir=/jes/amsdk/SUNWam/web-src/services/WEB-INF< com.iplanet.am.session.client.polling.enable=false
    com.iplanet.am.session.client.polling.enable=true< com.iplanet.am.console.remote=
    com.iplanet.am.console.remote=true< #com.sun.identity.server.fqdnMap[<invalid-name>]=<valid-name>
    com.sun.identity.server.fqdnMap[zldap.domain.com]=zldap.domain.com< com.sun.identity.webcontainer=WEB_CONTAINER
    com.sun.identity.webcontainer=SUN_WEBSERVER< com.sun.identity.liberty.interaction.htmlStyleSheetLocation=/jes/am/SUNWam/lib/is-html.xsl
    com.sun.identity.liberty.interaction.htmlStyleSheetLocation=/jes/amsdk/SUNWam/lib/is-html.xsl< com.sun.identity.liberty.interaction.wmlStyleSheetLocation=/jes/am/SUNWam/lib/is-wml.xsl
    com.sun.identity.liberty.interaction.wmlStyleSheetLocation=/jes/amsdk/SUNWam/lib/is-wml.xsl

  • Adobe Acrobat XI SDK Samples problem

    I am having problems building and running SDK samples.
    When built “out of the box”, the WebLinkDemo fails while getting HFT for AcroColor.
    After some googling, I found Adobe Acrobat XI SDK Release Notes:
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/release- notes-acrobatxisdk.PDF
    Following their directions:
    deleted
    /D PI_ACROCOLOR_VERSION=0x00060000
    inserted
    /D READER_PLUGIN
    WebLinkDemo builds OK, but required SnippetRunner fails to compile with multiple errors like:
    >c:\code\adobe\acrobat xi sdk\samples\snippetrunner\sources\snippets\shared\acetranspdetextcolorsnip.cpp(60): error C2065: 'PDEContentGetNumElemsSELPROTO' : undeclared identifier
    SELPROTO seems to be the commot suffix.
    Any suggestions?
    Thank you!

    Perhaps a little more context. You should understand that the Acrobat SDK is a tool for encouraging people to buy Acrobat - especially the consumers of plug-ins.
    Reader plug-ins can be made, subject to technical limitations, but Adobe do not especially like the lost sales of Acrobat this may represent.
    In addition to purchasing Acrobat, you will need to buy a Reader integration key, after negotatiation. Approval is not automatic!  There are also two scales of fees, one for regular Reader plug-ins and one for security related plug-ins, for which Adobe has a much higher fee and demands much more oversight.
    "How much does a Reader Integration key cost?
    Reader Integration keys are only available to strategic partners based on a negotiated price. If you are developing a digital rights management (DRM) Adobe Reader plug-in, the standard (non-DRM) RIKLA contract does not apply. Adobe does offer a DRM agreement specifically for developers building such Adobe Reader plug-ins. The current fee structure for the DRM RIKLA includes a $50,000 annual fee and a 5.5% revenue royalty."
    http://www.adobe.com/devnet/reader/ikla.html
    So, yes, to experiment with plug-ins, whether for Acrobat or eventually for Reader, please listen to what we are telling you and if you want to do this, buy Acrobat.

  • Printer Dialog Box through SDK creating problem

    Hello Experts,
    I have created a addon for printing Invoice Report in which i have given the option of Printer Dialog Box .
    Through sdk i have called that printer dialog box in the addon .It's running well in the server showing the Printer Dialog Box
    but while running the addon in client machine first two to three times printer dialog box appears after that while pressing the
    print button of my addon form Printer dialog box is not appearing .
    Then after restarting the machine Printer dialog box shows which is creating problem for the client use .
    Suggest the right way to sort out the problem .
    If anyone need to see the code which i have written i can post that code.
    Thanks
    Amit

    Hello Janos,
    Following code i have write for prrinter dialog box to open
    Public Sub ShowPrintDialogBrowser()
    Dim MyProcs() As System.Diagnostics.Process
    FileName = ""
    Dim PrintFile As New PrintDialog
    Try
    PrintFile.AllowSelection = True
    PrintFile.ShowNetwork = True
    MyProcs = Process.GetProcessesByName("SAP Business One")
    Dim UserName = Environment.UserName
                 For i As Integer = 0 To UBound(MyProcs)
                    If GetProcessUserName(MyProcs(i)) = UserName Then
                        GoTo NEXT_STEP
                    End If
                Next
                sbo_application.MessageBox("Unable to determine Running processes by UserName!")
                GC.Collect()
                Exit Sub
    NEXT_STEP:
    For i As Integer = 0 To MyProcs.Length - 1
    Dim MyWindow As New WindowWrapper(MyProcs(i).MainWindowHandle)
    Dim ret As DialogResult = PrintFile.ShowDialog(MyWindow)
    If ret = DialogResult.OK Then
    File_Directory = PrintFile.PrinterSettings.PrinterName
    PrintFile.Dispose()
    ElseIf ret = DialogResult.Cancel Then
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    Else
    File_Directory = ""
    System.Windows.Forms.Application.ExitThread()
    End If
    Next
    End If
    Catch ex As Exception
    SBO_Application.MessageBox(ex.Message)
    FileName = PrintFile.PrinterSettings.PrinterName
    Finally
    PrintFile.Dispose()
    End Try
    End Sub
    Imports System.Management
    Private Function GetProcessUserName(ByVal Process As Process) As String
            Dim sq As New ObjectQuery("Select * from Win32_Process Where ProcessID = '" & Process.Id & "'")
            Dim searcher As New ManagementObjectSearcher(sq)
            If searcher.Get.Count = 0 Then Return Nothing
            For Each oReturn As ManagementObject In searcher.Get
                Dim o As String() = New String(1) {}
                'Invoke the method and populate the o var with the user name and domain                        
                oReturn.InvokeMethod("GetOwner", DirectCast(o, Object()))
                Return o(0)
            Next
        End Function
    Regards,
    Amit

  • IPhone SDK installation problem

    Hi All,
    I have a problem installing the iPhone SDK.
    In the installation process, "Installation Type" page, the page you can choose modules either you want to install or not. I see "iPhone SDK" module is listed, but i couldn't select it, it's greyed out and it is not checked by default. So i had to continue like this, after installation, i couldn't open any iPhone sample code at all. XCode said i don't have iPhone SDK installed.
    I downloaded the SDK from ADC days ago.
    I upgraded my mac to 10.5.4, also upgraded iTunes to 7.7
    are there any other prerequisites?

    excuse me i'm quite new to this community.
    you mean the iphone sdk can not be installed on apple's own hardware?
    is apple switching the focus to x86 architecture? are there any background information that i should take a look at?
    appreciate it.

  • IPhone SDK Download Problems

    I have just made the account and started the long download process for the iPhone SDK. When I download the file and it completes the process, I click on it and it says Disk Image not able to mount. I tried that three more times and it still won't open. Any suggestions?

    Another victim here. Happily started downloading iphone SDK just after purchasing my new MacBook and it always stops at 2.1 GB. And of course it is corrupted.
    For those who are thinking about OS or firewalls, here are my trials:
    1. From my MacBook at home
    2. From my HP laptop at home
    3. From my desktop at home
    4. From my HP laptop at work
    5. From my Ubuntu at home
    6. From my Ubuntu virtual machine at work.
    Do you think it is still a client problem? Or the version on the server is corrupted?

  • ASE 16 SDK download problems

    I'm looking for the latest SDK for ASE 16, Solaris x86 & MS-Windows, both 64-bit.
    I'm in the middle of testing ASE 16 on Solaris (x64_64) with some MS-Windows clients.  I want to download the latest SDKs.
    I found another related thread, and followed the instructions there: http://scn.sap.com/thread/3628265
    In SAP Store, I find the free download of ASE 16 SP01.  Great.  I fill out the contact form, receive the SAP e-mail, click on the link in the e-mail, and get to the SAP store download page with links for the various OSs.  But none of them work -- all give "page not found".  The link in the e-mail says that it's good for 48 hours only.  I sent e-mail to address on the web page: [email protected]  No response.  The next day, I call SAP Active Global Support, who confirms the problem, but says that they can't help, because they "we are supporting customer with license and maintenance".  They will forward the issue to SAP Store, but don't guarantee a response.  They suggest I call Marketing or try this forum.
    Now, two days later, I try whole process again for the ASE 16 SP01.  Same response -- page not found.
    So I back-up to ASE 16 without the SP01 (turns out it's PL03).  I go through the same process, and get to the SAP Store download page, but no 64-bit Solaris x86.  There are two links for 32-bit Solaris x86 -- one of them is mislabeled; it actually points to a Solaris 64-bit download, but it appears to be for SPARC, not x86.
    How frustrating!  (Probably even more frustrating though for the customer who downloads the 64-bit code, expecting the 32-bit code.)
    Has anyone successfully navigated this process, and actually downloaded an ASE 16 SP01 SDK?

    This message is often the result of a caching problem. Clearing your cache may help.
    Cheers,
    David

  • Latest sdk download problems

    When I download the latest sdk build I can not uncompress it. It says it is corrupted??

    This message is often the result of a caching problem. Clearing your cache may help.
    Cheers,
    David

  • CLASSPATH Environment Variable on Win2k problem

    hi
    i am new to java, but having problems to seting the CLASSPATH Environment Variable on my Win2k professional. my university computers are alredy set and i enjoy working with java. i just cant get my head arround to this problem. it would be much appriciated if some one send me a link which provide screenshot to resolve this problem. i got my jdk1.4 kit in a folder caled jdk in c:\ root.
    thanks

    Ashwani_Saxena wrote:
    Our application is stand-alone application and we are using Applet with Object Id tag for JavaScript to Java connectivity. In our application we are displaying the value of classpath environment variable on screen.
    Applets and stand alone applications are two different animals.
    While migrating from JRE 1.5 to JRE 1.6, we are unable to retrieve the classpath variable value. After analyzing, figure out that when classpath is defined in uppercase (i.e. CLASSPATH) then only we are unable to retrieve its value. However if its defined in lower case or any character is in lower case (i.e. classpath) then its value appears correctly. We are retrieving the classpath value via the "Set" command from Java.
    That's completely unnecessary, there's a System.getevn("CLASSPATH") method.
    However the CLASSPATH environmental variable isn't much use, and certainly not in the case of Applets, which definitely don't use it.
    Futhermore I don't expect the sandbox environment of an Applet will allow you to access the environmental variables in any way, (certainly not by running a program). Applets, unless signed, have almost no access to the client machine they run on.

  • Win2K problem with self-signed certificate ?

    Hi all,
    We've got a self-signed application that works perfectly well under NT4. Once Webstarted under Win2K, it is correctly downloaded but does not display the warning dialog regarding the certificate installation (like it does in NT4). When the application starts, there's no activity expect the webstart splash.
    Does anyone know the problem ?
    Thanks
    Vince

    I had a similar problem (and solution) on NT 4.0: the splash
    screen would come up, but that was it. Uninstalled, reinstalled,
    emptied out cache and .javaws directories all to no avail.
    When I checked the .cfg file, there were duplicated entries for
    the jre. I ended up deleting these, and replacing them with the
    path to the jre I used for development, and knew was good. It
    worked fine. I think I had a dodgy jre installation that JWS had
    found and was trying to use as its default.
    Good luck.
    John

Maybe you are looking for

  • File appears different in arrange window and sample editor

    I received a few AIFF files from someone Im working with: 24 bit, 44.1, same as I use. However, although they show up fine in the sample editor, in the arrange window they look clipped, as if they've been recorded too loud. This is making them very h

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g

    Hi, How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version. We have tried below methods 1) criteria tab and edit the 'column properties' associated with your fact measure. Choose the 'Data Format' tab, tick to ove

  • SQL*Plus and NLS_DATE_FORMAT

    So, I haven't visited this topic in a long time, so I'm trying to refresh my memory on how everything works ... We set our NLS_DATE_FORMAT at the system level ... what ... 4 years ago to 'MM/DD/RR'. Despite the fact that I set this to something more

  • Problem with performing calculations on COUNT-aggregated columns

    Hi guys, I have something weird - 2 columns with Aggregation set to Count, both are from the same Fact table. Indicators are in the same Fact table. Count column A (with FILTER key_column USING Indicator1='yes') Count column B (with FILTER key_column

  • Leading zeros in rename photos

    When renaming a group of images it would be great if (as in Bridge) Lightroom would put in the leading zeros. I found it a pain to have to put in the extra zeros (using windows explorer) so they would appear in the correct order - even in bridge.