Installing JStock on 18.2

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Crusader
Level 2
Level 2
Posts: 67
Joined: Thu Oct 09, 2014 12:22 pm

Installing JStock on 18.2

Post by Crusader » Wed Aug 09, 2017 10:48 pm

Hello,

I am requesting help installing JStock on my dual system laptop running Linux Mint Cinnamon 18.2 - my primary system (Window$ being the other one). I have reviewed other JStock threads - but they don't address my specific issue.

inxi -Fxzd output

Code: Select all

a@a-UL80VT ~ $ inxi -Fxzd
System:    Host: a-UL80VT Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.3 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.2 Sonya
Machine:   Mobo: ASUSTeK model: UL80VT v: 1.0
           Bios: American Megatrends v: 214 date: 01/17/2011
CPU:       Dual core Intel U7300 (-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 ssse3 vmx) bmips: 6933
           clock speeds: max: 1300 MHz 1: 1300 MHz 2: 1300 MHz
Graphics:  Card-1: Intel Mobile 4 Series Integrated Graphics Controller
           bus-ID: 00:02.0
           Card-2: NVIDIA GT218M [GeForce G210M] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) FAILED: nouveau
           Resolution: 1280x1024@60.02hz, 1280x1024@60.02hz
           GLX Renderer: Mesa DRI Mobile Intel GM45 Express
           GLX Version: 2.1 Mesa 12.0.6 Direct Rendering: Yes
Audio:     Card-1 NVIDIA High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 01:00.1
           Card-2 Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic
Network:   Card-1: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express)
           driver: ath9k bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
           Card-2: Qualcomm Atheros AR8131 Gigabit Ethernet
           driver: atl1c v: 1.0.1.1-NAPI port: ec00 bus-ID: 04:00.0
           IF: enp4s0 state: down mac: <filter>
Drives:    HDD Total Size: 500.1GB (5.6% used)
           ID-1: /dev/sda model: ST500LT012 size: 500.1GB
           Optical: /dev/sr0 model: MATSHITA DVD-RAM UJ892AS
           rev: 1.00 dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 24x multisession: yes
           audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition: ID-1: / size: 308G used: 23G (8%) fs: ext4 dev: /dev/sda5
           ID-2: swap-1 size: 4.26GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 60.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 178 Uptime: 3:18 Memory: 1011.4/3916.8MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35
JStock requires Java - which I installed using Software Manager.

java -version output

Code: Select all

a@a-UL80VT ~ $ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
Using instructions provided by JStock, when I attempt to install JStock, I get the following message and then nothing happens.

Code: Select all

a@a-UL80VT ~ $ cd jstock/
a@a-UL80VT ~/jstock $ chmod 755 jstock.sh
a@a-UL80VT ~/jstock $ ./jstock.sh
Warning: /bin/java does not exist
Graphics Device initialization failed for :  es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
	at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
	at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)
	at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:205)
	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
	at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:215)
	at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:230)
	at org.yccheok.jstock.gui.trading.TradingJPanel.<init>(TradingJPanel.java:81)
	at org.yccheok.jstock.gui.JStock.createTradingJPanel(JStock.java:2124)
	at org.yccheok.jstock.gui.JStock.init(JStock.java:123)
	at org.yccheok.jstock.gui.JStock.access$4800(JStock.java:84)
	at org.yccheok.jstock.gui.JStock$41.run(JStock.java:1876)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
	at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
	at java.lang.Thread.run(Thread.java:748)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: No toolkit found
	at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:217)
	at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
	at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:215)
	at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:230)
	at org.yccheok.jstock.gui.trading.TradingJPanel.<init>(TradingJPanel.java:81)
	at org.yccheok.jstock.gui.JStock.createTradingJPanel(JStock.java:2124)
	at org.yccheok.jstock.gui.JStock.init(JStock.java:123)
	at org.yccheok.jstock.gui.JStock.access$4800(JStock.java:84)
	at org.yccheok.jstock.gui.JStock$41.run(JStock.java:1876)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
How do I deal with this?
LO 6.x on Mint 18.2 Cinnamon
In a world without walls, who needs Windows

nunks
Level 1
Level 1
Posts: 1
Joined: Mon Sep 11, 2017 1:26 pm

Re: Installing JStock on 18.2

Post by nunks » Mon Sep 11, 2017 1:31 pm

I think this is an issue with Open JDK.
Jstock works for me after I downloaded the Oracle JDK and set the JAVA_HOME variable inside jstock.sh to the unpacked JDK directory.

johnlw
Level 1
Level 1
Posts: 1
Joined: Tue Dec 05, 2017 10:46 pm

Re: Installing JStock on 18.2

Post by johnlw » Wed Dec 06, 2017 11:55 am

Thanks for this nunks.

If I can summarize, this is what has now worked for me on 18.3 Sylvia, which is probably the same as 18.2.

1) download Oracle JDK (jdk-9.0.1_linux-x64_bin.tar.gz) from the Oracle website and unpack it.
2) download JStock (jstock-1.0.7.30-bin.zip) and unpack it.
3) move both directories into a convenient location
4) change into jstock directory
5) set both jstock.sh and jstock.jar as executable (chmod +x jstock.*)
6) edit jstock.sh, uncomment the 8th line (the JAVA_HOME variable) and set the path to the Oracle jdk directory (/home/***/jdk-9.0.1 in my case)

At this point, changing into the jstock directory and running ./jstock.sh gets it up and running.

Post Reply

Return to “Software & Applications”