Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Using Java2OP fails (class or interface expected)


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Mar 1, 2016 11:26 AM Last Post By: Markus Humm
László Mlnvszky

Posts: 106
Registered: 10/21/09
Using Java2OP fails (class or interface expected)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2016 7:52 AM
Hi!

I'm trying to convert the EPSON ePOS for Android Jar file to PAS.
I reinstalled delphi with the new JDK 1.8.

I've got the ePOS2.jar and the Java2OP.exe, and the PATH of the JDK Bin included.

This command fails:
java2op -jar ePOS2.jar -classes com.epson.*
class or interface expected

I've tried it with java2op -jar ePOS2.jar -classes com.epson.* -unit epson.EPOS2 but it's the same.

However I have some src files included with the ePOS for Android, and for that, converting from the src to the PAS succeeded:
java2op -src epos2_Printer\app\src -unit epson2pos2printer -classes *

So, therefore my enviroment is OK. But is it possible to convert jar to PASCAL without the src?
What's the syntax?

|https://download.epson-biz.com/modules/pos/index.php?page=soft&scat=50]
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Using Java2OP fails (class or interface expected)  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2016 11:26 AM   in response to: László Mlnvszky in response to: László Mlnvszky
Am 01.03.2016 um 16:52 schrieb László Mlnvszky:
Hi!

I'm trying to convert the EPSON ePOS for Android Jar file to PAS.
I reinstalled delphi with the new JDK 1.8.

I've got the ePOS2.jar and the Java2OP.exe, and the PATH of the JDK Bin included.

This command fails:
java2op -jar ePOS2.jar -classes com.epson.*
class or interface expected

I've tried it with java2op -jar ePOS2.jar -classes com.epson.* -unit epson.EPOS2 but it's the same.

However I have some src files included with the ePOS for Android, and for that, converting from the src to the PAS succeeded:
java2op -src epos2_Printer\app\src -unit epson2pos2printer -classes *

So, therefore my enviroment is OK. But is it possible to convert jar to PASCAL without the src?
What's the syntax?

|https://download.epson-biz.com/modules/pos/index.php?page=soft&scat=50]

Hello,

afaik a JAR file is simply a zipped version of java files.
Try to look into it with your favourite ZIP utility.

Greetings

Markus
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02