How to use "jython-standalone-2.7-b3.jar" in windows 7? - python-2.7

I want to upgrade Jython from "jython2.5.4rc1" to "Jython 2.7-beta3".
I have downloaded following two files from "http://www.jython.org/downloads.html":
1. Jython 2.7beta3 - Installer - jython-installer-2.7-b3.jar
2. Jython 2.7beta3 - Standalone Jar - jython-standalone-2.7-b3.jar
When I doubleclick on "jython-installer-2.7-b3.jar" file, I am getting "Could n ot find the main class:org.python.util.install.Installation.program will exit" error.
Then I tried by using following command , But I am getting same error:
C:\Users\Downloads>java -jar jython-standalone-2.7-b3.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/python/util/jython : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: org.python.util.jython. Program will exit.
C:\Users\Downloads>
I tried both Installer and standalone jar files using the above command. Its throws same error.
Could anyone please guide me on How to install this "jython-installer-2.7-b3.jar" file
Thanks in advance.

"Unsupported major.minor version 51.0" means your version of Java is too old. Running java -jar jython-standalone-2.7-b3.jar was successfull with version 1.7 ...
d:\work>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Related

Netbeans 10.0 IDE with C++ plugin could not install some modules: com.jcraft.jsch

Having installed Netbeans 10.0, I wanted to install the C/C++ Plugin. However during the installation of the plugin, I get the following warning messages:
Warning - could not install some modules: com.jcraft.jsch - org.netbeans.InvalidException: Netigso: /home/vaddina/.netbeans/10.0/modules/com-jcraft-jsch.jar: Cannot start com.jcraft.jsch state remains INSTALLED after start()
I have to option to disable these modules and continue but after doing that I cannot set any C++ build hosts (Causes the following exception). I have a feeling the two issues are related. How can I get this working ? Any help is very appreaciated.
java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
Caused: java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException starting from ModuleCL#5cf2e19c[org.netbeans.modules.dlight.nativeexecution] with possible defining loaders null and declared parents [ModuleCL#2c9eaf6f[org.netbeans.modules.extexecution], ModuleCL#6273bb7b[org.netbeans.modules.terminal], org.netbeans.JarClassLoader#67dd5a36, Netigso[reference:file:/home/vaddina/.netbeans/10.0/modules/com-jcraft-jsch.jar], ModuleCL#1f237821[org.netbeans.api.io], ModuleCL#7cee86e7[org.openide.io], ModuleCL#1efed738[org.netbeans.api.progress], ModuleCL#56313df4[org.netbeans.libs.jna], ModuleCL#4bf24d31[org.netbeans.modules.keyring], ModuleCL#7a12f991[org.netbeans.api.annotations.common], ...1 more]
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
Caused: java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException
at org.netbeans.modules.nativeexecution.support.HostPropertiesPanelProviderImpl.getHostPropertyPanel(HostPropertiesPanelProviderImpl.java:39)
at org.netbeans.modules.nativeexecution.support.HostConfigurationPanel.<init>(HostConfigurationPanel.java:79)
at org.netbeans.modules.nativeexecution.api.ui.util.NativeExecutionUIUtils.getConfigurationPanel(NativeExecutionUIUtils.java:32)
at org.netbeans.modules.cnd.remote.ui.wizard.CreateHostVisualPanel2.<init>(CreateHostVisualPanel2.java:92)
at org.netbeans.modules.cnd.remote.ui.wizard.CreateHostWizardPanel2.getComponent(CreateHostWizardPanel2.java:83)
at org.netbeans.modules.cnd.remote.ui.wizard.CreateHostWizardPanel2.getComponent(CreateHostWizardPanel2.java:57)
at org.netbeans.modules.cnd.remote.ui.setup.CreateHostWizardIterator.getPanels(CreateHostWizardIterator.java:123)
at org.netbeans.modules.cnd.remote.ui.setup.CreateHostWizardIterator.current(CreateHostWizardIterator.java:146)
at org.openide.WizardDescriptor.updateStateOpen(Unknown Source)
at org.openide.WizardDescriptor.updateState(Unknown Source)
at org.openide.WizardDescriptor._updateState(Unknown Source)
at org.openide.WizardDescriptor.initialize(Unknown Source)
at org.openide.NotifyDescriptor.getterCalled(Unknown Source)
at org.openide.DialogDescriptor.isModal(Unknown Source)
at org.netbeans.core.windows.services.NbDialog.<init>(Unknown Source)
at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(Unknown Source)
at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(Unknown Source)
at org.netbeans.modules.openide.util.NbMutexEventProvider$Event$1AWTWorker.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at org.netbeans.core.TimableEventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[catch] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

JNLP application starts and before loading stops while launching via marathon JavaProfile Webstart

Hi my JNLP application strats and then stops after some time. Here is the error
`Dec 03, 2019 10:54:46 AM net.sourceforge.marathon.javadriver.JavaDriverCommandExecutor start
INFO: Executing: [C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaws.exe,
C:\QThinClient.jnlp][ {JAVA_TOOL_OPTIONS=-DkeepLog=false -Dmarathon.launch.mode=webstart -Dmarathon.mode=playing -Dmarathon.agent=file:/C:/Users/stalin_felix/.m2/repository/com/jaliansystems/marathon-java-agent/5.2.6.0/marathon-java-agent-5.2.6.0.jar -javaagent:"C:\Users\stalin_felix\.m2\repository\com\jaliansystems\marathon-java-agent\5.2.6.0\marathon-java-agent-5.2.6.0.jar"=61197}]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
Caused by: java.awt.AWTError: Error trying to install Assistive Technology:
com.sun.java.accessibility.AccessBridge java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.com.sun.java.accessibility")
at java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at net.sourceforge.marathon.javaagent.JavaElementPropertyAccessor$InternalFrameMonitor.init(JavaElementPropertyAccessor.java:892)
at net.sourceforge.marathon.javaagent.JavaAgentHook.premain(JavaAgentHook.java:42)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Picked up JAVA_TOOL_OPTIONS: -DkeepLog=false -Dmarathon.launch.mode=webstart -Dmarathon.mode=playing -Dmarathon.agent=file:/C:/Users/stalin_felix/.m2/repository/com/jaliansystems/marathon-java-agent/5.2.6.0/marathon-java-agent-5.2.6.0.jar -javaagent:"C:\Users\stalin_felix\.m2\repository\com\jaliansystems\marathon-java-agent\5.2.6.0\marathon-java-agent-5.2.6.0.jar"=61197
Exception in thread "main" Dec 03, 2019 10:57:17 AM net.sourceforge.marathon.javadriver.JavaDriverCommandExecutor start
WARNING: Unable to estabilsh connection with the application(timeout): [C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaws.exe, C:\QThinClient.jnlp][ {JAVA_TOOL_OPTIONS=-DkeepLog=false -Dmarathon.launch.mode=webstart -Dmarathon.mode=playing -Dmarathon.agent=file:/C:/Users/stalin_felix/.m2/repository/com/jaliansystems/marathon-java-agent/5.2.6.0/marathon-java-agent-5.2.6.0.jar -javaagent:"C:\Users\stalin_felix\.m2\repository\com\jaliansystems\marathon-java-agent\5.2.6.0\marathon-java-agent-5.2.6.0.jar"=61197}]
null---------null`
If anyone help solve this issue, please.

Error while installing informatica 10.1.0 on windows 10 Pro 64-bit

I have downloaded files from https://edelivery.oracle.com/. Extracted files and
double clicked on E:\dac_win_11g_infa_win_64bit_101\Server\install.exe.
I am getting following error.
Error:
"This application has unexpectedly quit invocation of this Java application has caused an InvoationtargetException.This application will now exit(LAX)"
Error Details:
Flexeraax2$aaa: Windows DLL failed to load
at Flexeraax2.af(Unknown Source)
at Flexeraax2.aa(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.init(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
My system details:
Operating system: Windows 10 Pro 64-bit
Ram: 16 GB
Java version: Java 7 64-bit (Also tried with Java 8)
Is there any other prerequisite for informatica 10.1.0?
Is it compatible with Windows 10 Pro 64-bit?
Please give me any solution or suggestion.
install.exe LAX_VM "C:\Program Files\Java\jre7\bin\java.exe"
Where install.exe is the server installation file in the folder where you have stored.
Execute the above command to install it will help you.
I doubt whether you are running the install.exe from the right folder. For Windows 10 use the zip folder 1010_Client_Installer_windows10_em-64t.zip .
It will work

Utilize Axis2 Client code

I am using WSO2 Dev Studio 3.5, I have used Generate Axis2 Web Service Client feature to generate new Axis2 Client. The Dev Studio created new Project and generated Stub for me, but I don't know how to utilize this Stub. I created new class in the same package with generated stub and tried 2 way below, but it all introduced error:
AdderStub stub = new AdderStub()
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
at axis2.adder.AdderStub.populateAxisService(AdderStub.java:41)
at axis2.adder.AdderStub.<init>(AdderStub.java:88)
at axis2.adder.AdderStub.<init>(AdderStub.java:77)
at axis2.adder.AdderStub.<init>(AdderStub.java:126)
at axis2.adder.AdderStub.<init>(AdderStub.java:118)
at axis2.adder.TestAdder.main(TestAdder.java:19)
Caused by: java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more
AdderStub stub = new AdderStub(null, "http://localhost:9763/services/Adder");
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList
at axis2.adder.AdderStub.populateAxisService(AdderStub.java:41)
at axis2.adder.AdderStub.<init>(AdderStub.java:88)
at axis2.adder.AdderStub.<init>(AdderStub.java:77)
at axis2.adder.TestAdder.main(TestAdder.java:19)
Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.utils.NamespacePrefixList
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
Could you please help me to utilized Axis2 Client code generated by WSO2 Dev Studio? thanks.
Regards,
Trong
This looks like an issue with Java classpath of this project. Typically, the needed dependency jar list can be found in pom.xml or in case of Ant, in build.xml. You need to include these when running your main class.
For ex. the first error is because the wsdl4j jar was missing in the classpath.

Eclipse Axis2 Service Archiver Plugin Problem

My Eclipse Axis2 Service Archiver plugin is no longer working properly. I have used it to build several .aar files but now when i open the plugin I only get blank gray screens. I've tried deleting the org.apache.axis2.eclipse.codegen.plugin folder from my workspace plugins directory and even removing the org.apache.axis2.eclipse.service.plugin_1.6.0.jar and reinstalling but I still get the same blank screens. I'm using Eclipse Indigo now, I even went back to Eclipse Helios and the same problem occurred. Any suggestions?
This might help:
1) Shut down eclipse
2) Change into the workspace plugins folder (something like:
workspace/.metadata/.plugins/org.apache2.eclipse.service.plugin)
3) Delete the file there (called dialog-settings or something).
4) Then restart eclipse and try if it works.
Hope it works.
I find the solution occasionally. When you get a grey dialog, maximize it, and it will display correctly
Caused by: java.lang.ClassNotFoundException:
org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory
Looks like you need axiom library in your cp.
I used to have the same problem, I solved it by going to Axis Runtime configuration under Eclipse Settings then remove the path to axis2 runtime. Apply and re-set the runtime path. Apply and try again to use your plugin.
I found the answer. I had extracted the jar for the plugin into the plugins folder in the eclipse installation directory. I moved them to the dropins folder in the eclipse installation directory and restarted eclipse. It is working properly now.
UPDATE: The problem is back. I found it is printing an exception in the workspace log:
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLGenerationPage.updateTable(ServiceXMLGenerationPage.java:241)
at org.apache.axis2.tool.service.eclipse.ui.ServiceXMLGenerationPage.createControl(ServiceXMLGenerationPage.java:160)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1183)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1242)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:257)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:277)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: org.apache.axiom.om.OMException: java.lang.ClassNotFoundException: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory
at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:139)
at org.apache.axiom.om.OMAbstractFactory.getOMFactory(OMAbstractFactory.java:152)
at com.gvr.fms.devcomm.interfacelayer.DevcommWebService.<clinit>(DevcommWebService.java:32)
... 57 more
Caused by: java.lang.ClassNotFoundException: org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:133)
... 59 more