• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Opening Java Program?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I download a program that I want to use but it requires Java to run. I just downloaded Java SE Developer X64 but I get an error every time I attempt to open the program. I don't know much about programming so I am not sure if it is my fault or the person who made the program. Here is the error I get

java.lang.NoClassDefFoundError: org/imgscalr/Scalr$Method
kanjitomo.ocr.ImageTools.A(ImageTools.java:91)
kanjitomo.ocr.ImageTools.C(ImageTools.java:56)
kanjitomo.ocr.OCRImageCache.A(OCRImageCache.java:214)
kanjitomo.ocr.OCRImageCache.A(OCRImageCache.java:113)
kanjitomo.ocr.OCR.A(OCR.java:102)
kanjitomo.ocr.OCR.A(OCR.java:138)
kanjitomo.reader.Analyzer.J(Analyzer.java:625)
kanjitomo.reader.Analyzer.<init>(Analyzer.java:62)
kanjitomo.reader.Reader.Ë(Reader.java:5751)
kanjitomo.reader.Reader.<init>(Reader.java:232)
kanjitomo.reader.Reader.A(Reader.java:256)
kanjitomo.reader.Launcher.main(Launcher.java:30)
program version:0.9.12.2
java version:1.8.0_141


Does anyone how to fix this? Thanks.
 
Saloon Keeper
Posts: 7594
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either you didn't download all parts of the program, or didn't add all parts of it to the classpath when trying to run the program: The class org.imgscalr.Scalr is missing. Were there maybe several jar files? They probably all need to be added to the classpath.
 
Marshal
Posts: 79278
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please explain how you are running the program. Show us the instructions you are using. That error might be a problem with the installation of the Developer program. Tim M seems to think the same. I would have thought that a download shou‍ld come with instructions for setting its classpath, or shoul‍ld have that already incorporated in the .jar file somewhere.
 
Dylan Valic
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Please explain how you are running the program. Show us the instructions you are using. That error might be a problem with the installation of the Developer program. Tim M seems to think the same. I would have thought that a download shou‍ld come with instructions for setting its classpath, or shoul‍ld have that already incorporated in the .jar file somewhere.



These are the instructions that were given with the program

"## INSTALLATION ##

The latest version of KanjiTomo can be downloaded from www.kanjitomo.net Unzip the package to
any directory and double-click KanjiTomo.jar, launch.bat (Windows) or launch.sh (Linux/Mac)
to run the program.  If you are upgrading from previous version of kanjitomo, you can use
Settings -> Import settings to load your old configuration.

Java is required to run the program. It is recommended to install Java JDK instead of JRE, it
will increase recognition speed by about 25%. KanjiTomo is a standalone program, Java browser
plugin is not required and can be disabled. Java can be downloaded from
http://www.oracle.com/technetwork/java/javase/downloads/index.html

KanjiTomo has been tested on Windows 7 operating system. Other operating systems might also
work, but Japanese fonts must to be installed."

I looked around in the files in there are a few more JAR files, but no instructions on how to create a path for it, unless I am not seeing something.
 
Tim Moores
Saloon Keeper
Posts: 7594
177
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I gave it a quick spin - double-clicking the main jar file does not succeed in running the program. the command that does work is the one that's in the launch.sh and launch.bat scripts. Try running those instead of double-clicking the jar file.
 
Dylan Valic
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:I gave it a quick spin - double-clicking the main jar file does not succeed in running the program. the command that does work is the one that's in the launch.sh and launch.bat scripts. Try running those instead of double-clicking the jar file.



Thank you so much Sorry to have wasted your time with something so easy.
 
Campbell Ritchie
Marshal
Posts: 79278
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dylan Valic wrote:. . . Thank you so much

Our pleasure

Sorry to have wasted your time with something so easy.

Not at all. You have not wasted anybody's time, but unearthed a potential bug in a product. It might be worth your while contacting the suppliers.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic