Error while attempting to run my JAR file

I'm very new to Java and I'm currently using Sun Java Studio Enterprise 8. I've created a Java Class Library. In it I wrote a few classes of my own and I've added a JFrame in which I've using some of them. My code compiles without problems. When I finished, I wanted to build the main project. I clicked F11 (Which is the Build hotkey) and it said "BUILD SUCCESSFUL". I then opened the project folder and tried to run my application. I got an error message saying:
Java Virtual Machine Launcher
Failed to load Main-Class manifest attribute from
C:\Documents and Settings\laginimaineb\SC\build\classes\SC.jar
OK
What should I do?
With Thanks,
laginimaineb.

Nevermind, I found the mistake.

Similar Messages

  • Trying to update to iTunes 10.4.1 and I get a message "A network error occured while attempting to read from the file C:|Windows|Installer|iTunes.msi"  Running WIndows 7 with all updates done.  I  have never had an issue with iTunes updating before.  Anyo

    iTunes has tried to update itself and runs into an error and tells me to manually install.  When I d/l and run the iTunesSetup.exe file I always encounter the following error message...
    "A network error occured while attempting to read from the file C;|Windows|Installer|iTunes.msi" and iTunes does not update to iTunes 10.4.1.
    Anyone know what is creating this error message?  Thanks for the help...

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page): 
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • While updating the older version iTunes to latest one it shows "a network error occurred while attempting to read from the file: C:\windows\installer\iTunes64.msi. pls help on this matter to connect my i5 to PC. Thanks in advance

    while updating the older version iTunes to latest one it shows "a network error occurred while attempting to read from the file: C:\windows\installer\iTunes64.msi. pls help on this matter to connect my i5 to PC. Thanks in advance

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page): 
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Event ID 1012 - There was an error while attempting to read the local hosts file

    When I start my Computer after it has been turned off overnight (switched off at the Power supply) I get a Blue screen and have to reboot the PC. in the Event log it has this error: Event ID 1012 - DNS client events - There was an error while attempting
    to read the local hosts file.
    Once the PC has booted evrything is O.K. I can restart the PC with no problems, it only seems to happen if the PC has been switched off for a while.
    I am connected to the net via an Netgear dg834v4 Modem/Router
    Windows 7 Ultimate
    Intel Q8200 CPU
    2 x 360 Gb HDD
    ATI 4680 !Gb Video Card
    Digital HDA X-Mystique 7.1 Sound Card
    Aver media 777 TV Tuner card.
    Thank you
    jeepers01
    After further Investigation it seems that this error is Not responsible for my Blue screening......I started my PC after leaving it off all night, and it started normally, but i still have this error in the Event Log - System.....I have searched the Technet
    forums (and there is a lot of ID 1012 errors) but non relating to my problem....If anyone knows what is causing this error and how to fix it, i'd be Grateful....although it does not seem to affect the PC in any way that i can see.
    thanks
    jeepers01

    Since Windows system uses separated user mode and kernel mode memory space, stop errors are always caused by kernel portion components, such as a third-party device drivers, backup software or anti-virus services (buggy services).
    The system goes to a BSOD because there is some exceptions happened in the kernel (either the device driver errors or the service errors), and Windows implements this mechanism: When it detects some errors occur in the kernel, it will kill the box in case
    some more severe damage happens. Then we get a blue screen or the system reboots (it depends on what the system settings are).
    To troubleshoot this kind of kernel crash issue, we need to debug the crashed system dump. Unfortunately, debugging is beyond what we can do in the forum. A suggestion would be to contact Microsoft Customer Service and Support (CSS) via telephone so that
    a dedicated Support Professional can assist with your request. Please be advised that contacting phone support will be a charged call.
    To obtain the phone numbers for specific technology request please take a look at the web site listed below:
    Microsoft - Help and Support
    If you are outside the US please see
    Microsoft Worldwide Home for regional support phone numbers.
    Meantime we can try some available steps as a general troubleshoot.
    1. Please remove the antivirus and run the system with a period. If the issue does not occur, mainly focus on antivirus settings and compatibility. 
    2. Disable Automatic Restart and see detail information on the blue screen.
    1).Click Start, in the Start Search box enter sysdm.cpl.
    2).Click the tab Advanced. Under Startup and Recovery, click the Settings button.
    3). Uncheck “Automatically restart”.
    4). On the drop-down menu “Write debugging information”, choose “Small memory dump”.
    5). Click OK.
    When Blue Screen displays, you may find some useful information.
    Arthur Xie - MSFT

  • Error detected while attempting to run job

    Hi everyone,
    One of my users tried to run a rule in Hyperion Planning 11.1.1.3 and an error occurred:   Error detected while attempting to run job
    When I went to Essbase, I found that when I launched the rule an error appeared:
    ERROR - 1006059 - Invalid block header: Illegal block type -- Please use the IBH Locate/Fix utilities to find/fix the IBH problem.
    I read that it could be an issue related to corrupted blocks. I'm not familiar with MXL and I read that there are commands that I could run. Someody could provide me help?
    Regards,

    I have XCP files:
    ----- Exception Error Log Begin -----
    Current Date & Time:   Thu Nov 07 13:31:38 2013
    Process Type:          Application
    Application Name:      HYPCOLAN
    Database Name:         COSTS
    Exception Log File:    c:\Hyperion\logs\essbase\app\HYPCOLAN\COSTS\log00001.xcp
    Current Thread Id:     5940
    Exception Code:        0xC0000005=Access Violation
    Exception Flags:       0x00000000=Continuable
    Exception Address:     0x603B569F
    Exception Parameters:  2
    Exception Parameter 0: 0x00000001=Write Violation
    Exception Parameter 1: 0x57970000 (Virtual Address)
    ----- Machine Registers -----
    General Registers:
       EAX=0x795D0E18  EBX=0x5796FFF8  ECX=0x57970038
       EDX=0x0DC0F6CC  ESI=0x00000048  EDI=0xFD320000
    Control Registers:
       CS =0x0000001B  EIP=0x603B569F  Flg=0x00010283
       SS =0x00000023  ESP=0x024ACBB0  EBP=0x024ACBCC
    Segment Registers:
       DS =0x00000023  ES =0x00000023  FS =0x0000003B
       GS =0x00000000
    Floating Point Registers:
       CWD=0xFFFF027F  SWD=0xFFFF3920  TWD=0xFFFF3FFF
       EOF=0x603B5699  ESL=0x0505001B  DOF=0x603E9B50
       DSL=0xFFFF0023  CRS=0x00000000
    Register Area (Hex):
       00 B0 B0 3A F7 7C 1D 90 CE BF
       00 00 00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00 00 00
       00 00 00 00 FC 09 A0 95 26 40
       00 00 C0 C6 B2 2C 7B 91 28 40
    Debug Registers:
       DR0=0x00000000  DR1=0x00000000  DR2=0x00000000
       DR3=0x00000000  DR6=0x00000000  DR7=0x00000000
    ----- Stack -----
    Stack Trace:
        0: 0x603b569f ESSSVRD@adReqCurrencyTransBegin + 0x9c22f 0x00000000010cf0a4 0x000000000dc0f6cc 0x000000000dc0f378 0x000000004a25db00
        1: 0x603b6ba8 ESSSVRD@adReqCurrencyTransBegin + 0x9d738 0x00000000010cf0a4 0x000000000032af01 0x0000000000000004 0x000000000000198a
        2: 0x603bb76b ESSSVRD@adReqCurrencyTransBegin + 0xa22fb 0x00000000010cf0a4 0x000000004a25db00 0x000000000dc0f330 0x000000000da45d00
        3: 0x603bc2d1 ESSSVRD@adReqCurrencyTransBegin + 0xa2e61 0x00000000000003a8 0x00000000010cf0a4 0x000000004a25db00 0x00000000214e006c
        4: 0x603bc441 ESSSVRD@adReqCurrencyTransBegin + 0xa2fd1 0x000000004a25db00 0x00000000024ad2a8 0x00000000010cf0a4 0x0000000000000000
        5: 0x603bf614 ESSSVRD@adReqCurrencyTransBegin + 0xa61a4 0x00000000010cf0a4 0x000000000025db00 0x0000000000000000 0x00000000010cf0a4
        6: 0x6037dc5f ESSSVRD@adReqCurrencyTransBegin + 0x647ef 0x0000000000000002 0x0000000000000000 0x00000000010cf0a4 0x00000000024ad2a8
        7: 0x6037e28d ESSSVRD@adReqCurrencyTransBegin + 0x64e1d 0x00000000010cf0a4 0x00000000024ad2a8 0x0000000000000002 0x0000000000000000
        8: 0x60376993 ESSSVRD@adReqCurrencyTransBegin + 0x5d523 0x000000000013003a 0x0000000000000000 0x00000000010cf0a4 0x00000000004ad200
        9: 0x601c902e ESSSVRD@adCSCRConvFixMbrFromBitMap + 0x1115e 0x000000000000012c 0x00000000596ea148 0x0000000000000000 0x00000000024ad40c
       10: 0x601af5d2 ESSSVRD@adOdomInc + 0x3172 0x00000000010cf0a4 0x00000000010cc462 0x000000000dc99940 0x000000000dc48fd8
       11: 0x601af718 ESSSVRD@adOdomInc + 0x32b8 0x00000000010cf0a4 0x00000000010cc462 0x00000000588edfd8 0x0000000000000000
       12: 0x601b02c5 ESSSVRD@adOdomInc + 0x3e65 0x00000000010cf0a4 0x000000000dc2d540 0x00000000010cf0a4 0x00000000604d283d
       13: 0x6032eb72 ESSSVRD@adReqCurrencyTransBegin + 0x15702 0x00000000010cf0a4 0x000000000dc6a0a4 0x000000000dc6a008 0x00000000024af660
       14: 0x6032db25 ESSSVRD@adReqCurrencyTransBegin + 0x146b5 0x000000000dc6a0a4 0x000000000dc6a008 0x00000000024af660 0x00000000604cfbba
       15: 0x603320d8 ESSSVRD@adReqCurrencyTransBegin + 0x18c68 0x00000000010cf0a4 0x000000000000000d 0x00000000024af660 0x0000000000004650
       16: 0x602ed5ac ESSSVRD@adThreadRegister + 0x467c 0x00000000010cf0a4 0x0000000000004650 0x0000000000000000 0x0000000000000000
       17: 0x602eec17 ESSSVRD@adThreadRegister + 0x5ce7 0x00000000000cf0a4 0x0000000000000000 0x0000000000000000 0x00000000010cf0a4
       18: 0x77e6481f kernel32@GetModuleHandleA + 0xdf 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000
    ----- Application-Wide Configuration -----
    Server Name:          
    Application Name:      HYPCOLAN
    Elapsed App Time:      00:21:23:39
    Module Count:          16
    Module  0:             0x00401000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSVR.EXE
    Module  1:             0x60001000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSVRD.DLL
    Module  2:             0x60B31000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSASOSM.DLL
    Module  3:             0x60CA1000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSRPM.DLL
    Module  4:             0x60DC1000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSAPINU.DLL
    Module  5:             0x60E91000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOTLSU.DLL
    Module  6:             0x60F41000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOTLNU.DLL
    Module  7:             0x60F81000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSMTDNU.DLL
    Module  8:             0x61031000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOPGN.DLL
    Module  9:             0x61061000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSHRU.DLL
    Module 10:             0x61135430 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSUTLU.DLL
    Module 11:             0x61151000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSDU.DLL
    Module 12:             0x61171000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSGLOBU.DLL
    Module 13:             0x61181000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSECU.DLL
    Module 14:             0x61191000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOBJIO.DLL
    Module 15:             0x611A1000 = C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSDVRQ.DLL
    ----- Operating System Resources -----
    System Date & Time:    Thu Nov 07 13:31:39 2013
    Elapsed OS Time:       13:21:34:36
    OS Name & Version:     Windows NT 5.02
    CPU Count:             16
    CPU Type:              Pentium
    Correct System Memory information currently not available
    Swap Flags:
       Enabled:            Y
       Disabled:           N
       File Found:         Y
       Denied:             N
    Swap file(s):          c:\pagefile.sys
    Correct Swap Space information currently not available
    Total Drives:          6
    Current Drive:         3
    Drive  3:
       Drive Name:         C
       Volume Label:       Local Disk
       Drive Type:         Fixed
       File System:        NTFS
       Total Drive Space:  142689329 KB
       Free Drive Space:   71187620 KB
       Used Drive Space:   71501709 KB
    Drive  4:
       Drive Name:         D
       Volume Label:       Drive_D
       Drive Type:         Fixed
       File System:        NTFS
       Total Drive Space:  292415096 KB
       Free Drive Space:   18586252 KB
       Used Drive Space:   273828844 KB
    Drive  5:
       Drive Name:         E
       Volume Label:      
       Drive Type:         Unknown
       File System:        Unknown
       Total Drive Space:  0 KB
       Free Drive Space:   0 KB
       Used Drive Space:   0 KB
    Drive  6:
       Drive Name:         F
       Volume Label:      
       Drive Type:         Unknown
       File System:        Unknown
       Total Drive Space:  0 KB
       Free Drive Space:   0 KB
       Used Drive Space:   0 KB
    Drive  7:
       Drive Name:         G
       Volume Label:      
       Drive Type:         Unknown
       File System:        Unknown
       Total Drive Space:  0 KB
       Free Drive Space:   0 KB
       Used Drive Space:   0 KB
    Drive 21:
       Drive Name:         U
       Volume Label:      
       Drive Type:         Unknown
       File System:        Unknown
       Total Drive Space:  0 KB
       Free Drive Space:   0 KB
       Used Drive Space:   0 KB
    ----- System-Wide Configuration -----
    Elapsed Essbase Time:  00:21:23:39
    Essbase Version:       11.1.1
    Essbase Description:   ESB11.1.1.3.0B126
    Network Type:          Windows Sockets
    Environment Variable:  ARBORPATH                 = c:\Hyperion\products\Essbase\EssbaseServer
    Environment Variable:  ARBORMSGPATH              = c:\Hyperion\products\Essbase\EssbaseServer\bin
    Module Count:          16
    Module  0:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSDU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  1:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSGLOBU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  2:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSUTLU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  3:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSECU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  4:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOBJIO.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  5:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOPGN.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  6:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOTLSU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  7:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSHRU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  8:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSAPINU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module  9:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSOTLNU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 10:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSRPM.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 11:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSMTDNU.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 12:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSASOSM.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 13:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSDVRQ.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 14:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSVRD.DLL
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    Module 15:
       Module Name:        C:\HYPERION\PRODUCTS\ESSBASE\ESSBASESERVER\BIN\ESSSVR.EXE
       Module Version:     11.1.1.1
       Module Description: ESB11.1.1.3.0B126.1
       Module Use Count:   2
    ----- ESSBASE.CFG Configuration Values -----
    Configuration Value:   JvmModuleLocation         = c:\Hyperion\common\JRE\Sun\1.5.0\bin\client\jvm.dll
    Configuration Value:   AuthenticationModule      = CSS
    Configuration Value:   PORTINC                   = 3
    Configuration Value:   DataErrorLimit            = 65000
    Configuration Value:   CalcCacheHigh             = 1100000000
    Configuration Value:   CalcCacheDefault          = 500000000
    Configuration Value:   CalcCacheLow              = 30000000
    Configuration Value:   CalcLockBlockHigh         = 4000000
    Configuration Value:   CalcLockBlockDefault      = 900000
    Configuration Value:   CalcLockBlockLow          = 400000
    Configuration Value:   UpdateCalc                = False
    Configuration Value:   NetDelay                  = 3000
    Configuration Value:   NetRetryCount             = 1000
    Configuration Value:   MultipleBitmapMemCheck    = True
    Configuration Value:   ParCalcMultipleBitmapMemOpt = True
    Configuration Value:   DYNCALCCACHEWAITFORBLK    = TRUE
    Configuration Value:   DYNCALCCACHEBLKRELEASE    = TRUE
    Configuration Value:   DYNCALCCACHEMAXSIZE       = 600M
    Configuration Value:   DYNCALCCACHECOMPRBLKBUFSIZE = 400M
    Configuration Value:   CalcLimitFormulaRecursion = TRUE;
    Configuration Value:   AGENTPORT                 = 1423
    Configuration Value:   SERVERPORTBEGIN           = 32768
    Configuration Value:   SERVERPORTEND             = 33768
    Configuration Value:   AGENTDESC                 = hypservice_1
    ----- Client Request Activity -----
    Server Name:          
    Application Name:      HYPCOLAN
    Total Request Threads: 20
    Avail Request Threads: 19
    Total Requests:        220
    Average Requests:      111.000000
    Weighted Average:      0.007431
    Statistics Per Minute:
       Current Requests:   0
       Minimum Requests:   0.000000
       Maximum Requests:   111.000000
    Thread Count:          20
    Thread Id 3324:
       Request Name:        GetAttributeNameSpecs
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 4060:
       Request Name:        GetMbrInfo
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 1692:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 736:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5288:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 784:
       Request Name:        OtlQueryMbrs
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 220:
       Request Name:        GetSelectedMbrInfo
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 4356:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 6100:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5944:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 4880:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 1128:
       Request Name:        OtlQueryMbrs
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5728:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5960:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 1208:
       Request Name:        GetOtlUMC
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5240:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 1768:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 3648:
       Request Name:        OtlQueryAttrib
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 1736:
       Request Name:        GetOtlInfo
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:33 2013
       End Time:            Thu Nov 07 13:31:33 2013
    Thread Id 5940:
       Request Name:        MaxL: Execute
       Database Name:       COSTS
       User Name:           admin
       Start Time:          Thu Nov 07 13:31:38 2013
       End Time:            Pending
    ----- Exception Error Log End -----

  • Error - An error occurred while attempting to establish an Applications Fil

    ERROR:
    An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_WIN2000. There may be a network configuration problem, or the TNS listener on node FNDFS_WIN2000 may not be running. Please contact your system administrator.
    When I try to submit concurrent request error occured which I mentioned above.
    Platform:Windows2000 server
    Apps Version:11.5.3 Vision
    Db version:8.1.6.0.0
    Environment:Windows2000 server(Stand aloe).
    I have one listener in database, I am sending you to my tns and listener files.
    DB listener and tns file.
    # LISTENER.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_VIS =
    (SID_DESC =
    (SID_NAME = VIS)
    #(ORACLE_HOME = J:\oracle\visdb\8.1.6)
    SID_LIST_VIS =
    (SID_LIST =
    ( SID_DESC = ( SID_NAME = FNDFS )
    ( ORACLE_HOME = J:\oracle\visora\8.0.6 )
    ( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
    ( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
    STARTUP_WAIT_TIME_APPS_VIS = 0
    CONNECT_TIMEOUT_APPS_VIS = 10
    TRACE_LEVEL_APPS_VIS = OFF
    LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    LOG_FILE_APPS_VIS = APPS_VIS
    TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    TRACE_FILE_APPS_VIS = APPS_VIS
    VIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    # TNSNAMES.ORA Network Configuration File: J:\oracle\visdb\8.1.6\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    VIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    (CONNECT_DATA =
    (SID = vis)
    Client Site tns and listner.
    # TNSNAMES.ORA FOR APPLICATIONS
    # Created by Rapid Install
    # Net8 definition for the database
    VIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = win2000)(PORT = 1521))
    (CONNECT_DATA =
    (SID = VIS)
    FNDFS_WIN2000 = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=win2000)(PORT=1523))
    (CONNECT_DATA=(SID=FNDFS))
    Rep60_VIS,Rep60_VIS.world=(ADDRESS=(PROTOCOL=tcp)(HOST=win2000.apps.com)(PORT=7002))
    # LISTENER.ORA FOR APPLICATIONS
    # Created by Rapid Install
    # Net8 definition for FNDFS listener
    SID_LIST_VIS =
    (SID_LIST =
    ( SID_DESC = ( SID_NAME = FNDFS )
    ( ORACLE_HOME = J:\oracle\visora\8.0.6 )
    ( PROGRAM = J:\oracle\visappl\fnd\11.5.0\bin\fndfs.exe )
    ( envs='EPC_DISABLED=TRUE,NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1' )
    STARTUP_WAIT_TIME_APPS_VIS = 0
    CONNECT_TIMEOUT_APPS_VIS = 10
    TRACE_LEVEL_APPS_VIS = OFF
    LOG_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    LOG_FILE_APPS_VIS = APPS_VIS
    TRACE_DIRECTORY_APPS_VIS = J:\oracle\visora\8.0.6\net80\admin
    TRACE_FILE_APPS_VIS = APPS_VIS
    Any help I appreciate in advance, I have been working on this issue since one week.
    Thanks,
    Kindest Regards
    Zeeshan Siddiqui

    This is my env file
    echo off
    REM $Header: envshell.cmd.NT 115.0 2000/04/15 02:04:09 wdgreene noship $
    REM +===========================================================================+
    REM | Copyright (c) 1999 Oracle Corporation, Redwood Shores, California, USA
    REM | All Rights Reserved
    REM | Applications Division
    REM +===========================================================================+
    REM |
    REM | FILENAME
    REM | envshell.cmd
    REM |
    REM | DESCRIPTION
    REM | This command script is used to create a command prompt with the entire
    REM | environment set for the VIS APPL_CONFIG
    REM |
    REM | NOTES
    REM | This command line file is for Windows NT.
    REM |
    REM
    SET LOCAL=VIS
    SET PATH=J:\oracle\visappl\fnd\11.5.0\bin;J:\oracle\visappl\ad\11.5.0\bin;J:\oracle\visappl\au\11.5.0\bin;%PATH%
    REM Run the VISsys.cmd file to set the environment
    REM to point correctly to the VIS APPL_CONFIG
    IF NOT EXIST J:\oracle\visora\8.0.6\VIS.cmd GOTO skiporacmd
    CALL J:\oracle\visora\8.0.6\VIS.cmd
    REM Run the VISsys.cmd file to set the environment
    REM to point correctly to the VIS APPL_CONFIG
    IF NOT EXIST J:\oracle\visappl\VIS.cmd GOTO nobatfiles
    CALL J:\oracle\visappl\VIS.cmd
    :skiporacmd
    :nobatfiles
    REM Create a new command prompt with our current environment.
    REM This cmd process will go away automatically.
    START cmd.exe
    GOTO theend
    :noconfigfiles
    ECHO This script requires the following files:
    ECHO
    ECHO J:\oracle\visappl\VISsys.cmd
    ECHO J:\oracle\visappl\VISora.cmd (optional)
    ECHO
    :theend
    =====================================================
    When I typed tnsping80 fndfs_win2000 it's returned OK .
    When I try to connect apps/apps@fndfs_win2000 from SQL/PLUS
    it returs :
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
    descriptor.
    I created another listener for APPS through Network Manager.
    Please let me know at your earliest Convenience.
    Regards
    Zeeshan

  • An error occurred while attempting to establish an Applications File Server

    Hi,
    I have following problem with concurrent manager logs and outputs (I am on R12, windows):
    "An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_APPLTOP_eviasl. There may be a network configuration problem, or the TNS listener on node FNDFS_APPLTOP_eviasl may not be running. Please contact your system administrator."
    There is plenty of similar threads and several metalink notes (including below) about it, but mine seems to be slightly different issue.
    Troubleshooting the "Error Occurred While Attempting to Establish an Applications File Server Connection" [ID 117012.1]
    As you can see from error message it says node name is FNDFS_APPLTOP_eviasl, but uname -n returns only eviasl. Where this APPLTOP is coming from?
    J:\oracle\VIS\inst\apps\VIS_eviasl\ora\10.1.2\network\admin\tnsnames.ora contains entries like below one (whole file is very long, but it does not contain entry with APPLTOP):
    FNDFS_eviasl = (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=eviasl)(PORT=1626))
    (CONNECT_DATA=(SID=FNDFS))
    Another tnsnames from ORACLE_HOME contains only below entry:
    rep_eviasl_VIS_eviasl_TOOLS.xxxxxx.xxx=(ADDRESS=(PROTOCOL=tcp)(HOST=eviasl)(PORT=1950))
    Yesterday I had issue with concurrent manager, so I was running adcmclean to fix it and this issue started after that.
    Any help would be appreciated.
    Regards
    Piotr
    Edited by: PiotrekJ on 02-Jul-2012 12:07

    OK, I was wrong - autoconfig finished with errors.
    Result : SUCCEEDED
    ===========================================================================
    ===========================================================================
    [ Config tool : j:\oracle\VIS\apps\apps_st\appl\ad\12.0.0\bin\adgentns.pl ]
    Command : j:\oracle\VIS\apps\tech_st\10.1.3\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe -I j:\oracle\VIS\apps\tech_st\10.1.3\perl\5.8.3\lib\MSWin32-x86-multi-thread -I j:\oracle\VIS\apps\tech_st\10.1.3\perl\5.8.3\lib -I j:\oracle\VIS\apps\tech_st\10.1.3\perl\site\5.8.3\lib\MSWin32-x86-multi-thread -I j:\oracle\VIS\apps\tech_st\10.1.3\perl\site\5.8.3\lib -I j:\oracle\VIS\apps\apps_st\appl\au\12.0.0\perl -I j:\oracle\VIS\apps\tech_st\10.1.3\Apache\Apache\mod_perl\site\5.8.3\lib\MSWin32-x86-multi-thread j:\oracle\VIS\apps\apps_st\appl\ad\12.0.0\bin\adgentns.pl PASSWORD contextfile=J:\oracle\VIS\inst\apps\VIS_eviasl\appl\admin\VIS_eviasl.xml logdir=J:\oracle\VIS\inst\apps\VIS_eviasl\admin\log\07031815 outdir=j:\oracle\VIS\inst\apps\VIS_eviasl\admin\out\07031815
    Action : execute
    SCRIPT RETURNED:
    Generate Tns Names
    Logfile: J:\oracle\VIS\inst\apps\VIS_eviasl\admin\log\07031815/NetServiceHandler.log
         Classpath : j:\oracle\VIS\apps\apps_st\comn\java\lib\appsborg2.zip;j:\oracle\VIS\apps\apps_st\comn\java\classes
    Updating s_tnsmode to 'generateTNS'
    UpdateContext exited with status: 0
    AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.
    Error generating tnsnames.ora from the database, temporary tnsnames.ora will be generated using templates
    Instantiating Tools tnsnames.ora
    Tools tnsnames.ora instantiated
    Web tnsnames.ora instantiated
    adgentns.pl exiting with status 2
    ERRORCODE = 2 ERRORCODE_END
    .end std out.
    .end err out.
    And the end of report
    [CVM Error Report]
    The following report lists errors encountered during CVM Phase
    <filename> <return code where appropriate>
    j:\oracle\VIS\apps\apps_st\appl\ad\12.0.0\bin\adgentns.pl 2
    No of scripts failed in CVM phase: 1
    AutoConfig is exiting with status 1
    I did run autocfg after cleaning FND_NODES. Can you also tell me how to run autocfg for DB? I am guessing I was always doing it for APPS (one from inst dir).
    Regards
    Piotr

  • An error occurred while attempting to establish an Application File Server

    Hi All,
    I am having problems viewing reports on a HP Unix system. I get the error, "An error occurred while attempting to establish an Application File Server connection with the node...."
    This server was working as a secondary DNS server and we moved the DNS server to a microsoft exchange server. I pointed the DNS server on this Unix system to the new ip address.
    When I try to start the Apps listener, I get an error ..:TNS-12545: Connect failed because target host or object does not exist"
    Any help please!!!
    Thanks
    A/A

    Thank you all for your response.
    Both the database and the applications run on a single node (HP Unix 11.0) system. I did add the IP address and the host.domain.com to the host file under /etc/hosts file but now I can't even start the database listener.
    I am sure it is the DNS server change that messed something. It was working fine until then.
    I get this error when I try to start the database listener.
    Error Message
    TNSLSNR for HPUX: Version 9.2.0.6.0 - Production
    System parameter file is /d01/fintest/product/9i/network/admin/FINTEST_hp4/listener.ora
    Log messages written to /d01/fintest/product/9i/network/admin/fintest.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROCFINTEST)))
    Error listening on: (ADDRESS=(PROTOCOL=TCP)(Host=hp4)(Port=1521))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    ----

  • Cannot delete itunes from pc,message states. a network error occurred while attempting to read from the file C:\windows\installer\itunes.msi

    ITUNES WILL NOT DELETE FROM ADD @ REMOVE PROGRAMS,
    MESSAGE, READS  a network error occured while attempting to read from the file  C:WINDOWS\installer\iTunes.msi

    All sorted now just needed to repair itunes from control panel

  • [SOLVED]Java error running a .jar file

    Hi. I'm running Arch 64 and I keep getting this error when trying to run
    java -jar TwinkEdit-0.6.9.jar (from twinkle.sourceforge.net -- a flashcard program for palm. This .jar is the desktop editor for the flashcards. It's worked before on Linux ... but that was almost 2 years ago.)
    Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
    at java.util.Vector.firstElement(Vector.java:442)
    at org.ekimd.twinkedit.TwinkUI.getJapFont(TwinkUI.java:979)
    at org.ekimd.twinkedit.TwinkUI$DynamicView.<init>(TwinkUI.java:589)
    at org.ekimd.twinkedit.TwinkUI.getDynamicView(TwinkUI.java:815)
    at org.ekimd.twinkedit.TwinkUI.access$1300(TwinkUI.java:88)
    at org.ekimd.twinkedit.TwinkUI$NewAction.actionPerformed(TwinkUI.java:1101)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6041)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5806)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4413)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2440)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    It happens in both 32 bit (arch32 chroot) and 64 bit jre's exactly the same.
    java -version gives:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
    (It also doesn't work on Windows, either .... I think it must be a Java version compatibility problem ??)
    Any ideas?
    Thanks, 
    Scott
    Last edited by firecat53 (2008-09-27 14:07:04)

    I gave it a try and got the same error. Then I started looking at the code:
    When you create a new file, the program starts looking for a font which supports japanes (don't ask me why). If it doesn't find any it throws the error you posted above. I was able to create a new file after I installed ttf-bitstream-cyberbit from AUR (first font supporting japanese I could find).
    You should contact the author and submit a bug report. Even if the program really needs japanese fonts, which I doubt, failing like this is just bad.
    Last edited by Garns (2008-09-27 13:26:05)

  • I am getting "a network error occurred while attempting to read from the file c:\windows\installer\itunes.msi" when I attempt to download itunes, can someone help me with this?

    I am getting "a network error occurred while attempting to read from the file c:\windows\installer\itunes.msi" when I attempt to install itunes.  Can anybody help me to resolve this issue?

    You can try disabling the computer's antivirus and firewall during the download the iTunes installation
    Also try posting in the iTunes forum since it is not an iPod touch problem.

  • Getting error when running the jar file..

    Hi All,
    I am new to executing jar file..Actually i have one class which contains the following code.
    import com.documentum.fc.client.DfClient;
    import com.documentum.fc.client.IDfClient;
    import com.documentum.fc.client.IDfSession;
    import com.documentum.fc.client.IDfSessionManager;
    import com.documentum.fc.common.DfLoginInfo;
    import com.documentum.fc.common.IDfLoginInfo;
    import com.documentum.fc.common.DfException;
    import com.fidelity.ftg.ereviewg2.migration.util.MigrationResource;
    * This class is used for creating docbase connection
    * *@type* DocbaseConnection
    * *@author* a405304
    * *@see*
    public *class *DocbaseConnection {
    //public static ResourceBundle resource;
    IDfSessionManager sMgr = *null*;
    IDfSession session = *null*;
    String docbaseName;
    *private* *static* DocbaseConnection +docbaseCon+;
    * Constructor for DocbaseConnection
    * *@throws* DfException
    * *@throws* Exception
    *private* DocbaseConnection()*throws* DfException, Exception{
    //ResourceBundle bundle = ResourceBundle.getBundle(Constants.RESOURCE_PATH,Locale.getDefault());
    MigrationResource bundle = MigrationResource.+getBundle+();
    String userId = bundle.getString("DOCBASE_USERID");
    String password = bundle.getString("DOCBASE_PASSWORD");
    docbaseName = bundle.getString("DOCBASE_NAME");
    IDfClient client = DfClient.+getLocalClient+();
    sMgr = client.newSessionManager();
    IDfLoginInfo loginInfo = *new* DfLoginInfo();
    loginInfo.setUser( userId );
    loginInfo.setPassword( password );
    loginInfo.setDomain("");
    sMgr.setIdentity( docbaseName, loginInfo );
    session= sMgr.getSession( docbaseName );
    System.+out+.println("# Connected to Docbase: "+session);
    }Now i create the jar file whose name is docbaseconnection.jar
    Now when i am running this jar file by using the following command then i am getting the following error..
    C:\JAR_FILES>java -jar docbaseconnection.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: com/documentum/fc/client/DfQuery
    For running this docbaseconnection.jar file i need the following thing in classpath...
    C:\Program Files\Documentum\dctm.jar;C:\Program Files\Documentum\Shared\dfc.jar;C:\Program Files\Documentum\Shared\log4j.jar
    I already add this jar files in the classpath of environment variables..Then also i am getting the same error..
    Kindly help me...........

    Well, let´s supose your manifest is defined as I did in my previous post. So, your directory base should be something like:
    C:\dir
    docbaseconnection.jar
    dctm.jar
    dfc.jar
    anotherlibraries.jar
    But, let´s supose you want something like
    C:\dir
    docbaseconnection.jar
    lib (folder, which contains dctm.jar, dfc.jar, etc)
    Then you should change the class-path of your manifest to
    Class-Path: ./lib/dctm.jar ./lib/dfc.jar
    That´s what I meant

  • OutOfMemory Exception while running a JAR file

    Hi,
    I am working with Java 1.5 and using Eclipse to build a GUI. My application has intensive image loading involved so I set -Xmx inside Eclipse when running the application in debug mode.
    However, once a JAR file is exported, I do not know how to specify the heap size required to run the program. Is there a way to ...
    1. embed the heap size info inside the JAR file?
    2. specify a heap size when running the JAR file?
    Thanks in advance.

    Heap size is specified by the -Xmx option on the java command. See the java command documentation.

  • Running a jar file from java code

    Hi!
    Im trying to run a jar file from my code.
    I've tried Classloader, but that doesnt work because it doesnt find the images (also embedded in the 2nd jar file).
    WHat I would like to do is actually RUN the 2nd jar file from the first jar file. There must be a way to do this right?
    any ideas?

    ok, I found some wonderful code (see below) that will try to start the jar. But it doesn't. What it does is produce the following error when my application runs...
    So it's not finding the images in the jar file that I am trying to run? Strange. I checked the URL that sending, but it seems ok....
    I think I will check the url again to make sure......
    any ideas?
    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)
    the code....
    /* From http://java.sun.com/docs/books/tutorial/index.html */
    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.net.JarURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.jar.Attributes;
    * Runs a jar application from any url. Usage is 'java JarRunner url [args..]'
    * where url is the url of the jar file and args is optional arguments to be
    * passed to the application's main method.
    public class JarRunner {
      public static void main(String[] args) {
        URL url = null;
        try {
          url = new URL(args[0]);//"VideoTagger.jar");
        } catch (MalformedURLException e) {
          System.out.println("Invalid URL: ");
        // Create the class loader for the application jar file
        JarClassLoader cl = new JarClassLoader(url);
        // Get the application's main class name
        String name = null;
        try {
          name = cl.getMainClassName();
        } catch (IOException e) {
          System.err.println("I/O error while loading JAR file:");
          e.printStackTrace();
          System.exit(1);
        if (name == null) {
          fatal("Specified jar file does not contain a 'Main-Class'"
              + " manifest attribute");
        // Get arguments for the application
        String[] newArgs = new String[args.length - 1];
        System.arraycopy(args, 1, newArgs, 0, newArgs.length);
        // Invoke application's main class
        try {
          cl.invokeClass(name, newArgs);
        } catch (ClassNotFoundException e) {
          fatal("Class not found: " + name);
        } catch (NoSuchMethodException e) {
          fatal("Class does not define a 'main' method: " + name);
        } catch (InvocationTargetException e) {
          e.getTargetException().printStackTrace();
          System.exit(1);
      private static void fatal(String s) {
        System.err.println(s);
        System.exit(1);
    * A class loader for loading jar files, both local and remote.
    class JarClassLoader extends URLClassLoader {
      private URL url;
       * Creates a new JarClassLoader for the specified url.
       * @param url
       *            the url of the jar file
      public JarClassLoader(URL url) {
        super(new URL[] { url });
        this.url = url;
       * Returns the name of the jar file main class, or null if no "Main-Class"
       * manifest attributes was defined.
      public String getMainClassName() throws IOException {
        URL u = new URL("jar", "", url + "!/");
        JarURLConnection uc = (JarURLConnection) u.openConnection();
        Attributes attr = uc.getMainAttributes();
        return attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;
       * Invokes the application in this jar file given the name of the main class
       * and an array of arguments. The class must define a static method "main"
       * which takes an array of String arguemtns and is of return type "void".
       * @param name
       *            the name of the main class
       * @param args
       *            the arguments for the application
       * @exception ClassNotFoundException
       *                if the specified class could not be found
       * @exception NoSuchMethodException
       *                if the specified class does not contain a "main" method
       * @exception InvocationTargetException
       *                if the application raised an exception
      public void invokeClass(String name, String[] args)
          throws ClassNotFoundException, NoSuchMethodException,
          InvocationTargetException {
        Class c = loadClass(name);
        Method m = c.getMethod("main", new Class[] { args.getClass() });
        m.setAccessible(true);
        int mods = m.getModifiers();
        if (m.getReturnType() != void.class || !Modifier.isStatic(mods)
            || !Modifier.isPublic(mods)) {
          throw new NoSuchMethodException("main");
        try {
          m.invoke(null, new Object[] { args });
        } catch (IllegalAccessException e) {
          // This should not happen, as we have disabled access checks
    }

  • Error While trying to run a servlet

    I am getting the below error while trying to run a servlet using tomcat.In this admin is a directory where I have a html file called admin.html which calls the servlet AdminServlet & replaces the url by /servlet/AdminServlet.
    HTTP Status 404 - /SPOT/admin/servlet/AdminServlet
    type Status report
    message /SPOT/admin/servlet/AdminServlet
    description The requested resource (/SPOT/admin/servlet/AdminServlet) is not available.
    For more details I am also copying the code from the admin.html file below.
    <script language=JavaScript>
    document.location.replace('../servlet/AdminServlet');
    </script>

    JavaScript != javareplace or redirect ??

Maybe you are looking for

  • If I move my itunes and photo libraries to an external drive, will they still be backed up via time machine (on another external drive)?

    I have 2 external drives, one of which I would like to use to store my iphoto and itunes libraries (to create space on my laptop hard drive).  Then I have a 1tb drive that I'm going to use for my time machine backup.  Will I be able to back up the it

  • Wont open files -- again.

    When I double-click a file on my server, or right-click and select Open, DW only gives me the LIST command and then says File activity complete. This is the same site that I've been using for the last few weeks, and it was working perfectly up until

  • Error AC531 - Design question

    Hello experts, A US company with fiscal year running from Oct-Sept wants to roll out the fixed asset template to a Asian country e.g. China having fiscal year Jan-Dec. Since US is the parent company the depreciation area 01 has US GAAP valuation in C

  • Can I use any headphone/mic combo that has the small pin

    I have an old single earbud with mic set which I believe was made by nokia. The jack size is one that looks that an mini earphone jack. Can you use that with an iphone or only items with "can be used with iphone" on it?

  • LoginContest maintains state?

    I have written a custom LoginModule to authenticate a client's x509 certificate against OID. My client is a java class that calls a jsp page - the jsp page grabs the cert info and calls the LoginContext as follows: LoginContext lc = null; Subject sub