Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: class file has wrong version 55.0, should be 52.0

class file has wrong version 55.0, should be 52.0 1 year 1 month ago #10817

  • Pomplun
  • Pomplun's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Hello all,
i want to modify my running RPI-runtime station with a web interface.
The last two days i read a lot of things in this Forum howto do this.
But now I'm on a point i found no information here in this Forum.
When i want to build the rpi-station on the Development-station i get an error-message, that pwr_job.jar has an wrong version.
-- Build node rpihzg57web
/usr/local/pwrp/rpihzg57web/src/pop/Webtest_A.java:10: error: cannot access JopApplet
public class Webtest_A extends JopApplet {
^
bad class file: /usr/pwr57/os_linux/hw_x86_64/exp/lib/pwr_jop.jar(jpwr/jop/JopApplet.class)
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

(wb:3210): GLib-CRITICAL **: 19:22:37.291: Source ID 50414 was not found when attempting to remove it
-- Web startpage generated $pwrp_web/index.html
Setting base /usr/pwr57
-- Building archive for volume: 000_253_005_007
-- Archive built for volume: 000_253_005_007
-- Working with load file volume 'VolRpihzg57web'...
-- Open file...
-- Successfully created load file for volume 'VolRpihzg57web'
-- 32 objects with a total body size of 49832 bytes were written to new file.
-- Creating bootfile for node rpihzg57
-- Plc thread generated priority 22, scantime 0.10000 s, 1 plcpgm's
Setting base /usr/pwr57
-- Plc process compiled for arm_linux optimized -O3 -
Setting base /usr/pwr57
-- Plc program linked for arm_linux plc_rpihzg57_0001_plc

On my Development-station with ubuntu 18.04 i have installed the Proview version 5.6.1 and 5.7.1.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

pwrp@ubu1804proview-dev:~$ echo $jdk
/usr/lib/jvm/java-11-openjdk-amd64
pwrp@ubu1804proview-dev:~$ echo $jdk_home
/usr/lib/jvm/java-11-openjdk-amd64/bin
pwrp@ubu1804proview-dev:~$ java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-Ubuntu-0ubuntu1.18.04.1)
OpenJDK 64-Bit Server VM (build 11.0.9+11-Ubuntu-0ubuntu1.18.04.1, mixed mode, sharing)

Do i have a problem with the different proview versions?
Do i have to build a new developstation with only the latest proview?

Thanks
Wolfgang
The administrator has disabled public write access.

class file has wrong version 55.0, should be 52.0 1 year 1 month ago #10818

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2898
  • Thank you received: 418
  • Karma: 124
Hi Wolfgang,

Nowadays you should not set JavaFrame or Applet and compile the graph for java. Instead you should copy the pwg-file to $pwrp_web and set the name of the pwg-file (test.pwg ?) in the WebGraph object.

/Claes
Last Edit: 1 year 1 month ago by claes.
The administrator has disabled public write access.

class file has wrong version 55.0, should be 52.0 1 year 1 month ago #10819

  • Pomplun
  • Pomplun's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Hi Claes,
thank you very much for the Job, you are doing here. Proview is a very cool software and i love it daily more, but some times it's very hard to find the helpfull information in this forum or the manuals.
The biggest reason for my problems are of course my modest and rusty English. (Google Translator or other)

The latest manual about web interface that i found was "www.proview.se/doc/en_us/man_dg_dg_web_interface.html". I think that's for the Java-version.

Then i saw a Topic that you have build a "New GE Demo". In this Topic are many good information for higher-level proviewer. But it's very hard to understand for smaler-level proviewer, like me.

Today:
I found in Topic #9955 from @marc the that he followed the upgrade56.pdf.
I read this more than once. I understood it to mean that he had upgraded his devel station. :S
The one who can read is in advantage. :blush:

I will start from zero. Build a new VM with ubuntu 18.04.5 and Proview 5.7.1.1.

I will report!

Thanks
Wolfgang
The administrator has disabled public write access.

class file has wrong version 55.0, should be 52.0 1 year 1 month ago #10820

  • Pomplun
  • Pomplun's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
Hi Claes, hi all,

now it's working.

Here is a small howto for those who has the problem to find helpful information.

I create a small project for a rpi 4, latest raspbian and proview rpi-runtime.
This small project has only 2 lv - Signals (Input + Output).
In the plc the Input connected to Output.
see: VolPwrwebtestrpi1.png




The graph rpiwebtest.pwg has 1 valueinput-field and value-field.
In Ge save and Build.
see: GE-rpiwebtest_pwg.png

After that i open a terminal and copy the files from different folder like the description from upgrade56.pdf chapter Web Interface in HTML5 and javascript
Setting base /usr/pwr57
pwrp@ubu1804proview-dev:~$ sdf pwrwebtestrpi
Setting base /usr/pwr57
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Welcome to
pwrwebtestrpi   V5.7    

Revision history
2020-10-31      pwrp    Project created
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
pwrp@ubu1804proview-dev/pwrwebtestrpi/-.login> cp /usr/pwr57/os_linux/hw_x86_64/exp/web/*.* $pwrp_web
pwrp@ubu1804proview-dev/pwrwebtestrpi/-.login> cp /usr/pwr57/os_linux/hw_x86_64/exp/exe/*.pwg $pwrp_web
pwrp@ubu1804proview-dev/pwrwebtestrpi/-.login> cp $pwrp_exe/*.pwg $pwrp_web
pwrp@ubu1804proview-dev/pwrwebtestrpi/-.login> cp $pwrp_load/*.flw $pwrp_web

Then i Build the rpi-station and distribute it to the rpi.

On the rpi i have to modify the file with sudo nano /etc/apache2/apche2.conf with
Alias /pwrp_web /pwrp/common/web/
<Directory /pwrp/common/web/>
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
        Require all granted
</Directory>

After that restart apache2

and now you can connect to the rpi with:
http://your_rpi_name_or_ip_address/pwrp_web/opwind.html

That’s it. I hope I haven't forgotten a step.
This is how it works for me.

best regards
Wolfgang
Attachments:
Last Edit: 1 year 1 month ago by Pomplun.
The administrator has disabled public write access.

class file has wrong version 55.0, should be 52.0 1 year 1 month ago #10822

  • Pomplun
  • Pomplun's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
The administrator has disabled public write access.

class file has wrong version 55.0, should be 52.0 2 months 2 weeks ago #11195

  • KAYA
  • KAYA's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Hi eerybody,

I could not enable web demo still . I am sure I do what designer guides says configure apache2.cnf file install jdk. But still not run web browser.
Some can help about this what is the procedure.
1. start demo program (5.8 includes every configuration web handler web socket ...etc)
2. İnstall apache2 and configure
3. İnstall JDK and enable JDK version from the terminal if you have other Java in your computer.
4. and run the system over web browser.

any other route that I should follow ?

Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

Alias /pwrp_load/ /pwrp/common/load/
<Directory /pwrp/common/load>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /pwrp_exe/ /pwrp/x86_linux/exe/
<Directory /pwrp/x86_linux/exe>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

# asagidaki kısım degisitirlmistir.

Alias /pwrp_web/ /usr/pwrp/pwrdemo58/bld/common/web/
<Directory /usr/pwrp/pwrdemo58/bld/common/web>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 4.353 seconds