<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: First time user issues - Java compile errors and JVM config in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354024#M1313</link>
    <description>&lt;P&gt;Thanks for the help.&amp;nbsp; The solution was to install the latest 64 bit version of the JRE and change the settings as recommended.&amp;nbsp; This fixes the compile errors.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 21:37:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-03T21:37:45Z</dc:date>
    <item>
      <title>First time user issues - Java compile errors and JVM config</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354022#M1311</link>
      <description>&lt;P&gt;I'm really wanting to get on board with this tool for many reasons, but early on it is somewhat frustrating.&amp;nbsp; I understand that the installed JVM and configuration are important to a smooth experience.&amp;nbsp; What exact version is required or are there specific versions to avoid?&amp;nbsp; I'm having issue with running the demo code and get the issue below.&amp;nbsp; I am simply trying to run the code at the bottom of this post which is supposed to tell me what version of the JVM I have installed - my way of troubleshooting.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For starters I installed the most current java runtime and had issues - studio wouldn't run - java error 13.&amp;nbsp; Then I installed the most recent JDK SE and fixed the path issues myself.&amp;nbsp; Open Studio seems to work fine.&amp;nbsp; The code for the jobs seems to fail now.&amp;nbsp; Any help is greatly appreciated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Long term I want to build jobs and deploy on ubuntu to etl data from SQL server to a production MySQL instance.&amp;nbsp; If anyone reading this can offer advice I'm all ears.&amp;nbsp; Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job compile errors&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The method convertToJSONText(..........refers to the missing type List&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Make sure your JVM setup is similar to the studio????&amp;nbsp; Any help here would be great!&lt;/P&gt; 
&lt;P&gt;org.talend.designer.runprocess.ProcessorException: Job compile errors&lt;BR /&gt;At least job "OnBoardingDemoJob" has a compile errors, please fix and export again.&lt;BR /&gt;Error Line: 244&lt;BR /&gt;Detail Message: Incompatible conditional operand types Exception and TDieException&lt;BR /&gt;There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.&lt;BR /&gt;at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:338)&lt;BR /&gt;at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:533)&lt;BR /&gt;at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:316)&lt;BR /&gt;at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:826)&lt;BR /&gt;at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:609)&lt;BR /&gt;at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1951)&lt;BR /&gt;at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:601)&lt;BR /&gt;at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:440)&lt;BR /&gt;at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:356)&lt;BR /&gt;at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:474)&lt;BR /&gt;at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:240)&lt;BR /&gt;at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:966)&lt;BR /&gt;at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:548)&lt;BR /&gt;at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1444)&lt;BR /&gt;at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:700)&lt;BR /&gt;at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)&lt;BR /&gt;at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:85)&lt;BR /&gt;at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)&lt;BR /&gt;at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919)&lt;BR /&gt;at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)&lt;BR /&gt;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)&lt;BR /&gt;at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)&lt;BR /&gt;at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)&lt;BR /&gt;at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)&lt;BR /&gt;at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)&lt;BR /&gt;at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)&lt;BR /&gt;at org.talend.rcp.intro.Application.start(Application.java:277)&lt;BR /&gt;at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)&lt;BR /&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)&lt;BR /&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)&lt;BR /&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)&lt;BR /&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:567)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)&lt;BR /&gt;at org.eclipse.equinox.launcher.Main.run(Main.java:1501)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Create&amp;nbsp; a tJava component and use the following:&lt;/P&gt; 
&lt;P&gt;Advanced Settings:&lt;/P&gt; 
&lt;P&gt;import java.util.Map;&lt;BR /&gt;import java.util.Properties;&lt;BR /&gt;import java.util.Enumeration;&lt;BR /&gt;import java.lang.management.RuntimeMXBean;&lt;BR /&gt;import java.lang.management.ManagementFactory;&lt;BR /&gt;import java.lang.management.OperatingSystemMXBean;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Basic Settings:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Date date = new Date();&lt;BR /&gt;System.out.println(date);&lt;/P&gt; 
&lt;P&gt;System.out.println("\n---------- Environment Variables");&lt;BR /&gt;Map&amp;lt;String, String&amp;gt; env = System.getenv();&lt;BR /&gt;for (String envName : env.keySet()) {&lt;BR /&gt;System.out.format("%s=%s%n", envName, env.get(envName));&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;System.out.println("\n---------- JVM Properties");&lt;BR /&gt;Properties props = System.getProperties();&lt;BR /&gt;// props.list truncate at 40 charcaters ....&lt;BR /&gt;// props.list(System.out);&lt;BR /&gt;for (Enumeration k = props.keys() ; k.hasMoreElements() &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; {&lt;BR /&gt;for (Enumeration e = props.elements() ; e.hasMoreElements() &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; {&lt;BR /&gt;System.out.println(k.nextElement() + " = " + e.nextElement());&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;System.out.println("\n---------- runtimeMXBean Properties");&lt;BR /&gt;RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();&lt;BR /&gt;OperatingSystemMXBean operatingSystemMXBean =&lt;BR /&gt;java.lang.management.ManagementFactory.getOperatingSystemMXBean();&lt;/P&gt; 
&lt;P&gt;System.out.println(runtimeMXBean.getName());&lt;BR /&gt;&lt;BR /&gt;List&amp;lt;String&amp;gt; aList = runtimeMXBean.getInputArguments();&lt;BR /&gt;String parameters = "";&lt;BR /&gt;for (int i = 0; i &amp;lt; aList.size(); i++) {&lt;BR /&gt;parameters = parameters + " " + aList.get(i);&lt;BR /&gt;System.out.println (aList.get(i));&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;System.out.println("\n---------- runtimeMXBean Properties");&lt;BR /&gt;int cores = Runtime.getRuntime().availableProcessors();&lt;BR /&gt;long freeMemory = Runtime.getRuntime().freeMemory();&lt;BR /&gt;long totalMemory = Runtime.getRuntime().totalMemory();&lt;BR /&gt;String osArch = operatingSystemMXBean.getArch();&lt;BR /&gt;String osName = operatingSystemMXBean.getName();&lt;BR /&gt;String osVersion = operatingSystemMXBean.getVersion();&lt;BR /&gt;double loadAvg = operatingSystemMXBean.getSystemLoadAverage();&lt;BR /&gt;&lt;BR /&gt;System.out.println ("Number of cores : " + cores);&lt;BR /&gt;// System.out.println ("Total Physical memory : " + operatingSystemMXBean.getTotalPhysicalMemorySize());&lt;BR /&gt;System.out.println ("Free memory : " + freeMemory);&lt;BR /&gt;System.out.println ("Total memory : " + totalMemory);&lt;BR /&gt;System.out.println ("OS Arch : " + osArch);&lt;BR /&gt;System.out.println ("OS Name : " + osName);&lt;BR /&gt;System.out.println ("OS Version : " + osVersion);&lt;BR /&gt;System.out.println ("Load Average : " + loadAvg);&lt;BR /&gt;&lt;BR /&gt;// Thread.sleep(1000);&lt;BR /&gt;Date date2 = new Date();&lt;BR /&gt;System.out.println("\n" + date2);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354022#M1311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: First time user issues - Java compile errors and JVM config</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354023#M1312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please use Java 8 and try to run the job again?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In case you are having multiple JRE versions, please go to Windows-&amp;gt; Preferences and tag the correct JRE version to Talend Studio as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 712px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M85k.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131661iD64EEF93334A1F6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M85k.png" alt="0683p000009M85k.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354023#M1312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: First time user issues - Java compile errors and JVM config</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354024#M1313</link>
      <description>&lt;P&gt;Thanks for the help.&amp;nbsp; The solution was to install the latest 64 bit version of the JRE and change the settings as recommended.&amp;nbsp; This fixes the compile errors.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/First-time-user-issues-Java-compile-errors-and-JVM-config/m-p/2354024#M1313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

