Main application class not public but runs fine

Hi. I may be talking rubbish, but I vaguely recollect reading that the main class (the one that has the main method that is invoked by the JVM) must be public to be accessible to JVM, as well as the main method. I had beared that in mind until a few days ago, when I accidentally noticed that my main class is not in fact public, but the application works fine.
Is the thing I remember about this wrong (clearly) or has it changed somewhere in the past and I missed reading about this change, or am I loosing it?
(The observation was made on Java 6.)
Regards.

szczypior wrote:
Hi. I may be talking rubbish, but I vaguely recollect reading that the main class (the one that has the main method that is invoked by the JVM) must be public to be accessible to JVM, as well as the main method.The main method has to be, but nothing states that the class has to be as well. After all, the modifier is for visibility to other classes. The JJVM isn't a class.
Check the Java Language Specification (google "JLS") if you like.

Similar Messages

  • How can I put my main Application class in a package?

    Hello,
    I would like to put my main Application class for my air app inside a package. If I create a regular FLX application, this works fine. In that case I just move the application file created into a packade and change the run/debug settings. This does not work for an Air app however, when I try I first get the error:
    Adobe AIR application is missing the corresponding MyApp-app.xml
    So I move the MyApp-app.xml into the same package, then I get:
    Unknown error generating output application.xml files. Check the Eclipse error log for more details.
    Is it possible to have the man Application class reside inside a package for air applications?
    Regards,
    Mikael

    Hi Mikael,
    I ran into the same result as you so I asked around and it sounds like this might not be supported.  However, I'd recommend reposting this question over on the Flash Builder forums to see if anyone has found a workaround.
    Please let me know if you're able to resolve this.
    Thanks,
    Chris

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone,
    I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
    I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
    Please have a look at the stacktrace below.
    Thank you for your help.
    Best Regards
    Patric
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
         java.rmi.UnmarshalException: skeleton class not found but required for client version
         sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         sun.rmi.transport.Transport$1.run(Transport.java:153)
         java.security.AccessController.doPrivileged(Native Method)
         sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         java.lang.Thread.run(Thread.java:595)
         sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         java.rmi.Naming.lookup(Naming.java:84)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
    Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
    Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
    Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib

  • Director 12 IOS app quits on iPod, but runs fine on iPad.  Any way to get it works on both?

    Director 12 IOS app quits on iPod after a second after loaded, but runs fine on iPad.  Any way to get it works on both?
    ipod - generation 3 - 2010 Spring (the last one before it got a camera)
    ipad - generation 3 - 2012 summer

    "what does it take to get final apps working on an iOS 7 iPad"
    Well most of the school made tutorials that i've seen over years, didn't really have too much code, so it may not take much at all to get it working - it might even work straight away.
    There's always some work required - but the pay off will be worth the effort.
    Problems to look out for :-
    can't use 3rd party xtras,
    can't use embedded fonts,
    can't have easy keyboard entry (you'll need to redesign everything for touch),
    scroll text fields need a bit of reworking,
    11khz sounds files need to be set higher,
    some 8 bit graphics bomb out,
    there are some lingo commands that just seem to bomb out the app (work around these with other lingo commands!)
    embedded Flash objects need a little bit of work to get them working right,
    videos need to be in swf format.
    If you're only running them on (in school) iPads - i'd say go with the side loading option.
    best not to bother with the app store - if you can.
    There are a few other enterprise options that might also suit.

  • Lately, I've been getting a blue screen in the midst of working and have to do a cold reboot to end it. Seems to happen when I'm closing windows or quitting applications. Not always, but sporadically. What causes this? I'm using 10.6.8 on early 2011 MBP.

    Lately, I've been getting a blue screen in the midst of working and have to do a cold reboot to end it. Seems to happen when I'm closing windows or quitting applications. Not always, but sporadically. What causes this? I'm using 10.6.8 on early 2011 MBP. Thanks for any help/advice!

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • I don't want Adobe to open up and be selected immediately. I work with iPhoto and Ipages etc and preview which needs to be my main application for my work , but need adobe reader for other files... how can I do this please?

    I don't want Adobe to open up and be selected immediately. I work with iPhoto and Ipages etc and preview which needs to be my main application for my work , but need adobe reader for other files... how can I do this please?

    loopiloo1 wrote:
    I don't want Adobe to open up and be selected immediately.
    Sorry, I don't understand this - you don't want Adobe [Reader] not to open when doing what?  On what operating system?

  • Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

  • I can't send mail from  mail application on my MAcbook but sends fine on iMac?

    I can't send mail from  mail application on my MAcbook but sends fine on iMac? This just started today...I checked to make sure the preferences were correct for the POP account and it's fine. HELP!

    Mail: Troubleshooting sending & receiving email messages (OS X Lion, Mac OS X v10.6)

  • Application dumps core in 64-bit but runs fine in 32-bit

    Hi,
    I have a strange problem in a application supposed to be run in 64-bit mode. The application is a batch process run as a daemon. When it is compiled with 32-bit mode, it seems to be working fine, but when it is compiled with 64-bit mode, it dumps core after 30 min to 1 hr. This is not always predictable. The data where it dumps core is also not predictable. When I analysed the core, it shows the location, in a place where there seems to be no problem. I ran purify to check the memory leaks, and there is no memory leak in the code, except in the Forte STL (string).
    The core dump happens in a place where the message is read from a message queue and is assigned to a string. (i.e. assignment from char array to string). I have made sure that the pointers are not getting deleted twice.
    I am using the following environment
    SunOS archie 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-60
    Sun WorkShop 6 update 2 Compilers C++
    Sun WorkShop 6 update 2 Standard 64-bit Class Library for C++
    If anybody has any idea about the problem, please reply to this.
    Thanks a lot,
    H.M.Joisa

    Since the Configurator doesn't include a compiler, so the flash panel generated by it doesn't have a native height and width.
    So the height and width you assigned in the Configurator is saved into the .gpc file.
    You observation is very sharp and accurate, when a panel is opened first time in the Photoshop.
    It will show the panel in the default size first, then it will load the height and width you assigned from the .gpc file, and resize it to the size you want.
    And then when you close the panel, it will save the current panel size to a flash player share object.
    The next time when you open the panel, it will load the last time saved size back.

  • 13" Mid 2012 MBP. Internal hdd not seen (again...) but runs fine from USB.

    I bought my MBP in December, 2012. It ran wonderfully for the first three months. With no real warning whatsoever, I got the ? Folder at startup. I did my research and tried the troubleshooting I found here and on other sites.
    What it boiled down to was that I could run the hdd externally via USB just fine, but it was not detected via the internal SATA connection. I tried swapping the hdd as well, but I didn't have any luck. So, I ran my brand new MBP via USB for about two months until I got back to the U.S. (working in Afghanistan) and took it to the local Apple Store.
    They checked it out, swapped the hdd, and told me it was fixed. It seemed like it for about three or four months, but I was still wary. Sure enough, the hdd failed again. This time I couldn't get it to work from the USB though, so I beleived the hdd actually failed this time. I swapped the hdd, hoping that it was that simple (back in Afghanistan, so the store wasn't an option). It ran fine for about two months this time.
    Now it is not detected internally again, but runs just fine via USB. I did try a different hdd that I had on hand, and that wasn't detected either. As you can imagine, I am not excited about running a year old MBP via USB. Unfortunately my initial year of coverage ran out last month.
    Does anyone have some suggestions on how I should go forward with this? I've heard great things about Apple support, but I won't be back to the U.S. for at least a month. Should I bother talking to the local Apple Store when I get back? Deal directly with a different support avenue? Am I out of luck and stuck financing my own repairs? What is the best course of action here?
    13" Mid-2012 MBP. 2.5 GHz i5. OSX 10.9.1

    Assuming there is nothing wrong with the HDD, then there may be a faulty ribbon cable connecting the drive to the motherboard. Try replacing it.
    I would also check that your RAM modules are well-seated with clean edge pins.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Resetting your Mac's PRAM and NVRAM

  • GPIB not responding after running fine in vb6 app.

    Hello, I am writing a program using vb6 and gpib interfacing an hp4142 voltage source/monitor and a keithly 707 matrix. The Program runs fine for a while and then ibspy shows EDVR(0) on all the commands. It is almost like the board is timing out. I access the instruments using ibdev.

    Hi,
    EDRV refers to a low-level driver error. Usually the driver cannot get a hold of some system resource. A system call failed. The OS-specific error code is placed in ibcnt.
    Here are some examples:
    I Am Communicating with My GPIB Instrument and I Receive the EDVR Error After a Few Hours of Operati...
    GPIB Error Codes and Common Solutions (Part 1)
    Also, make sure to call ibonl (ud,0) to close any open handles that are not used.
    Hope this helps.
    DiegoF
    National Instruments.

  • Getting class not found error running java application using OIM libraries

    Hi,
    I have created a java application in which I access OIM libraries to fetch user list and then assign user roles. As i run the application it generates exception and program crashes. However, I am using the same libraries in OIM adapters and it is working fine. Following is the exception message i am getting.
    Caused by: java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
    at RoleAssignment.RoleAssignment.getUserAndChangePassword(RoleAssignment.java:143)
    at RoleAssignment.RoleAssignment.execute(RoleAssignment.java:81)
    at RoleAssignment.RoleAssignment.main(RoleAssignment.java:36)
    ... 5 more
    Caused by: java.lang.ClassNotFoundException: org.springframework.jndi.JndiTemplate
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

    Hi,
    I resolved the problem by making spring.jar part of my executable jar file. I have added oimclient.jar, spring.jar, wlfullclient.jar, commons-logging.jar, and eclipselink.jar part of my executable jar. Now I am getting the error below. I googled it and it mentioned that i should add path of authwl.conf in my run configuration in eclipse. So i added the following line in " -Djava.security.auth.login.config=/u01/oracle/Middleware/Oracle_IDM1/server/CustomExec/authwl.conf " under the VM Arguments section of run configuration, but it continues to give the same error.
    java.lang.SecurityException: Unable to locate a login configuration
         at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
         at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
         at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
         at Thor.API.Security.LoginHandler.weblogicLoginHandler.login(weblogicLoginHandler.java:58)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:134)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
         at com.infotech.tra.organization.RoleAssignment.getUserAndChangePassword(RoleAssignment.java:213)
         at com.infotech.tra.organization.RoleAssignment.execute(RoleAssignment.java:149)
         at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:49)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
    Caused by: java.io.IOException: Unable to locate a login configuration
         at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
         at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
         ... 24 more

  • QTP not recognizing flex application while execution..but records fine

    Dear forum members, Am facing a issue with QTP & Flex. Appreciate if any one could help out with any solutions for the issue.
    Issue:
    QTP 11 & Flex application
    While recording QTP identifies the flex application and records the steps
    Browser("QuikViewWeb").FlexApplication("app").FlexApplication("QuikVie wWeb.swf").FlexCanvas("ManageViewContainerCanvas").FlexBox("index:3"). FlexCanvas("Devices").FlexButton("popUpButton").Click
    Browser("QuikViewWeb").FlexApplication("app").FlexApplication("QuikVie wWeb.swf").FlexCanvas("ManageViewContainerCanvas").FlexBox("index:3"). FlexCanvas("Devices").FlexList("criteriaList").FlexCanvas("[ ] Samsung").FlexCheckBox("Samsung").Click
    Browser("QuikViewWeb").FlexApplication("app").FlexApplication("QuikVie wWeb.swf").FlexCanvas("ManageViewContainerCanvas").FlexBox("index:3"). FlexCanvas("Devices").FlexButton("Okay").Click
    But after I record and try to playback the script, QTP does not recognize the flex objects. It fails to identify "FlexApplication("app")" object
    Anyone faced this kind of issue? Any solution for this issue?
    I'm using Win 7, 64 Bit, QTP 11 & Flex 4.5 Plugin for HP QuickTest Pro
    Please let me know if any more info is needed.
    Regards
    Nishar Ahmed

    Hi Nishar,
    I am facing the same problem. Did you find a solution to this?
    Regards

  • Child class not called at run time labview

    I'm developing a large application using a few Class.
    In development mode, everything works fine.  When I build the application and run the executable, one of my child class is not called at all.  In some of the methods of that child class I have checked the option in "Window Appearance" to show the Front Panel when VI Load.  The VI show it self but is not executing.  The run button is in a state that indicate there is no top vi calling it.
    I have played whit Execution : Preallocated clone reentrant execution and General: Separate compiled code from source file.
    And I set them back to default.
    Two days lost trying to figure what append to my application.
    Please Help.
    Nitrof

    Hi Nitrof,
    Check out this excerpt straight from the NI Training Manual on object-oriented programming (image attached). There's a chance that the child classes aren't being included in the build. They need to be included somewhere in the application VI so that the Application Builder knows to include the class in the build.
    Also check out this forum that sounds like it's describing a similar problem: http://forums.ni.com/t5/LabVIEW/Problems-with-dyna​mic-class-load-in-executable/m-p/2139116
    Hope this helps!
    Alexandra
    National Instruments
    Applications Engineer
    Attachments:
    Forum1937225.png ‏146 KB

  • Unable to load applet on one machine, but runs fine on others

    Hi there
    I have created and deployed, successfully, a JavaFX applet which I tested on my development machine and a separate machine and all is fine. The Applet with its associated HTML, JNLP and JAR file reside on a webserver, and my testing was still successful (and another colleague tried also).
    I proudly announced the location to others within the organisation (sorry I am not able to share the URL) and one person reported that all was fine, they loaded and used the application, the other reported the following error message:
    Ignored exception: java.lang.NullPointerException
    exception: JNLP file error: xxx_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
    java.io.FileNotFoundException: JNLP file error: xxx_browser.jnlp. Please make sure the file exists and check if the "codebase" an "href" in the JNLP file are correct.
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$appletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown source)
    Exception: java.io.FileNotFoundException: JNLP file error: xxx_browser.jnlp
    This person, who is in a remote site (so not yet been able to visit the machine) is using Windows XP, IE 6.0. I have a machine which also runs this setup and can load the application.
    I am really unsure what could be the problem. I have even asked the user to load the Winter Olympics JavaFX visualisation to see if that works (it does).
    Can anyone give me any advise? I am guessing it is a problem local to that machine, rather than the JavaFX application?

    Hi there
    An update on this situation. I managed to visit said machine on Friday and found the following:
    1 - The error in the Java console is:
    java.io.FileNotFoundException: JNLP file error: XXX_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
    2 - I was able to browse, and resolve, the XXX_browser.jnlp file
    3 - The client was able to load other JavaFX applets from the same server/website but they were not behind any password protection.
    4 - The client is able to use the JavaFX application via the XXX.jnlp file (i.e. web start)
    Whilst on site I noticed that IE was reporting "Could not find privacy policy for http://dl.javafx.com/ping.js". I added this site to the browsers accepted list, and marked this as Always allow this site to use cookies but to no avail.
    Remember, this site does work for another user.
    My thinking now is, when executing the URL to load the HTML you have to enter a password, (which we did), this loads the HTML which then tries to load the JAR file (in the same location) but for some reason it in turn cannot load it XX_browser.jnlp file and it is does not challenge for a username and password again (like it does when you run it as a web start).
    Any thoughts?

Maybe you are looking for

  • How do I get the on-off button to work again?

    I have an iPod nano, 6th generation. The on-off button has stopped working, therefore I can't turn off the display screen until it does it itself and when I'm away from my wall charger, I can't turn the iPod on to change a song. The button doesn't ev

  • Flex View purchases with bugs and no apparent support

    I'm trying to get help with some of the flex view movies we've bought recently. The first issue that came up was a movie that wouldn't start where we left off, but always reset to the beginning. All of the other flex view movies we have will start wh

  • Troubles with passwords after upgrade

    Hi, we upgraded the system from 4.6 to ECC 6. and now some of our users have the problems with passwords (login). We suspect that more users have the same password. Is it possible that in new verision users need to have different passwords? Thanks an

  • Discount Promotion Buy one (1) and get one (1) 50% Off

    I need to configure in SD the discount promotion Buy one (1) and get one (1) 50% Off. I tried creating a discount condition and it works, but the user want to see the discounted Item showing up in the Sales Order in the next line 50% off from the ori

  • Tax code S2 may only contain one assignment line-Input Service tax

    There is one interim service tax input code (for normal services) - S1. Final service tax code S2 is created assigned to S1 as target tax code. Entry passed: Exp A/c.. Dr 500000 Service Tax Basic (deferred) 50000 Service Tax ECS (deferred) 1000 Servi