I keep getting this annoying error
Could not find main class: replicatorg.app.base. program will exit
Dose anyone have a fix.
Main
About MakerBot
Community
Friends
Development
Meta
Brought to you by:
I keep getting this annoying error
Could not find main class: replicatorg.app.base. program will exit
Dose anyone have a fix.
I'm in the same boat. ReplicatorG gives me the same error (doesn't have replicatorg.app.base in it but otherwise the same).
I'll let you know if I figure anything out trying to get this sucker to run……..
Okay, got a fix for that:
http://forums.reprap.org/read.php?12,18595
Basically the run.bat file is what you should be clicking on, but you also may need to EDIT the run.bat file so that it has a pointer to where you're keeping Java on your machine. (You'll need to look under Program Files/Java to find it…)
Of course, I'm still stuck because the firmware doesn't presently fit on my micro board (I'm actually NOT running on a Sanguino but an Arduino, thus I'm about 300 bytes shy of the needed memory!)
Hopefully this will fix your problem though!
I reduced the rep-rap g-code firmware to fit on an arduino:
(notes from a blog post:)
I've been looking at the arduino firmware recently, and trying to add some simple shaft encoder speed control.
I printed the whole firmware out and read through it. Overall, it's pretty good - but I came up with a couple of improvements for my version:
There are several spare variables defined 'for encoder use' that are never used - should these be a #define for encoder use (or delete them?)
//this is for doing encoder based extruder control
int rpm;
long e_delay;
int error;
int last_extruder_error;
int error_delta;
bool e_direction;
I'd suggest a clearly #defined set of constants that match hardware. For instance,
#define EXTRUDER_VALVE
#define EXTRUDER_ENCODER
#define EXTRUDER_STEPPER
#define EXTRUDER_DC
- then we can include/hide chunks that do or do not matter. Space is limited on the arduino single-board, every byte is useful. I cut my dev version from 14364 to 13270 by #defing the valve routines (M126/M127) and combining the temp wait for warmup/error routines into wait_for_temperature().
#defing the gcodes 81, 82, 83 (canned drilling cycles) to Sanguino also saved some space, as I don't have a drill.
I ripped out the TEST_MACHINE code - it looks like it should possibly be an alternative firmware version rather than a compile switch, as it seems to be an entirely separate set of functions, unconnected to the main code.
I don't know if the makerbot/your setup is the same, but it might be worth a look.
Note that if you #ifdef and #endif a section, it will not be compiled into the final image, reducing the size.
Check through your code to see if you can remove any sections, or tweak it to your setup.
Look for hardware differences - e.g. you only need the DC motor OR the stepper motor code for the extruder.
I've got the old RepRap firmware running at the moment—
It works for now, but if I find the SNAP protocol and RepRap host software don't work well enough, I'll be trying to get back onto the ReplicatorG framework, so the tip is appreciated!
(ReplicatorG crashes outright if you use an Arduino running SNAP and tell it there's a Cupecake CNC hooked up.)
yah see i used the batch file but it seems like i cant tell it which port to look at and every time i select the makerbot machine it cant connect to it. it just dosent want to find the right port i cant event edit the config file to find it so i decided to run a virtual box with Linux and i am going to try to use that. so far its working on Linux though.
Great I thought as I found this post I have the Same Java Error but I am a year on from the last question. I have downloaded ReplicatorG 17 for Windows.
The ReplicatorG 17 for Windows has not got the Bat file will any of the older bat file do?
Will the ReplicatorG 17 for Windows download be fixed to include the Bat file?
I have tried adding extra paths in control pannel to no avail..
My windows OS runs from D:\ not C:\
Replicator G looks good from the posts but I cant get it to run.
I found the Post "Has anyone ever had ReplicatorG java error" Dated a March 2009.
The problem was solved for this post by changing the Batch file.
However ReplicatorG17 has not got the batch file this was deprecated in or before ReplicatorG007.
Windows XP is run from Drive D on my machine any suggestions how to Fix this Java Error.
Arduino 16,17 & 18 all run OK but ReplicatorG fails to find the main Class.?
This is the exception i get when running it from the command line;
Exception in thread "main" java.lang.NoClassDefFoundError: d:\replicatororg-0017\ReplicatorG/exe
Caused by: java.lang.ClassNotFoundException: d:\replicatororg-0017\ReplicatorG.exe
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: d:\replicatororg-0017\ReplicatorG.exe. Program will exit.
ReplicatorG17 looks good from the recent posts.. ;-(
Solution to the problem find a copy of the old depreciated bat file add two more paths and hey presto working replicatorG batch file listed below.
@echo off
REM - if you're running out of memory, change the 128m
REM - (which means 128 megabytes) to something higher.
set SAVEDCP=%CLASSPATH%
set SAVEDPATH=%PATH%
set JAVA_HOME="C:\Program Files\java\bin"
if %JAVA_HOME% == "" GOTO Error
set CLASSPATH=java\lib\rt.jar;lib;lib\build;lib\vecmath.jar;lib\j3dcore.jar;lib\j3dutils.jar;lib\replicatorg.jar;lib\antlr.jar;lib\RXTXcomm.jar;lib\miglayout-3.7.jar;lib\oro.jar;lib\registry.jar;lib\mrj.jar
set PATH=java\bin;java\lib;%PATH%
REM start javaw -ms128m -mx128m replicatorg.app.Base
%JAVA_HOME%\java replicatorg.app.Base
set CLASSPATH=%SAVEDCP%
set PATH=%SAVEDPATH%
GOTO End
:Error
echo * Error: cannot execute ReplicatorG
echo * Reason: lacking the directory where to find Java in your computer
echo *
echo * Fix: Edit run.bat and add the JAVA_HOME directory
echo * at the 'set JAVA_HOME=""' line
echo *
echo *** then call the batch file run.bat in order to execute ReplicatorG
:End
Pause
echo Bye.
I am trying to run ReplicatorG 25 on a Windows 7 pc. I had success for about a week running the Replicatorg0025-windows-Java download, but now it doesnt work. I believe this version came with a Java folder to resolve a problem where windows 7 64bit java updates were incompatable with replicatorg.
Now when I open ReplicatorG directly in C: or with a clean setup in a user folder, I get nothing.
I am able to get a little further if I right click the replicatorg application and run the troubleshoot compatability wizard. Choosing the recomended setting of Windows XP (service pack 2) I am able to get a Java virtual machine Launcer window saying. "could not find the main class: replicatorg.app.base. Program will exit." The program then exits.
Why did Replicatorg once work but now doesnt? I have tried reloading a freshly downloaded program after searching for all of replicatorg traces and deleating them. Java says I am up to date.
Thanks
Was your last build insane? Meaning was it really big? If it was do this, find the gcode of your last build's gcode (it is important that find the right file) copy and paste it somewhere else if you want to keep it. Open the Gcode using wordpad. Edit:select all… Delete everything. Open a simple small gcode and replace the guts of the original file with it. Save it as the original file, its important that you keep the same name and path ( you copied it, right) open replicatorG. It drove me crazy but I wasn't taking no for an answer since the Makerbot is my best friend while I'm deployed!!! Hope it works for you.