Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
07-24-2006, 11:19 PM
|
#1
|
|
Constant Bitrate
Join Date: Jul 2006
Location: CT
Vehicle: 2000 Chevy Blazer 4door 4x4
Posts: 198
|
java embeded
I have writen a java app to control my serial relay for manythings, and im trying to get it embeded into CF, if any one can think of a really clean way to do this let me know, i currantly have my .class file, i tried converting it into a .exe but the .exe conversion program doesnt use the entire c:\....bin\java to run it so it will not run properly, i've tried creating a .bat file and embeding it, which works but the command window stays open, if i could some how get rid of the command window that would work .. .any idea's? any one embed jave yet? i did search, couldnt find much ... thanks in advance
- I'm an IT major, not a programer, but im tryin'!
__________________
Carputer Status:MobileOne: Gentoo reinstall/optimization - coming soon!
MobileTwo: ubuntu quick fix while MobileOne's out of service -- worklog-- GeekBlog--
Audio: stage 2 nearing completion
|
|
|
07-24-2006, 11:32 PM
|
#2
|
|
MySQL Error
Join Date: Apr 2004
Posts: 4,955
|
Quote: Originally Posted by red_parchel
I have writen a java app to control my serial relay for manythings, and im trying to get it embeded into CF, if any one can think of a really clean way to do this let me know, i currantly have my .class file, i tried converting it into a .exe but the .exe conversion program doesnt use the entire c:\....bin\java to run it so it will not run properly, i've tried creating a .bat file and embeding it, which works but the command window stays open, if i could some how get rid of the command window that would work .. .any idea's? any one embed jave yet? i did search, couldnt find much ... thanks in advance
- I'm an IT major, not a programer, but im tryin'!
You might could try converting it to J# and it might work as a CFPlugin...
david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
|
|
|
07-25-2006, 12:18 AM
|
#3
|
|
Variable Bitrate
Join Date: Jan 2006
Location: Kuwait
Vehicle: IMPREZA WRX TR 2006
Posts: 234
|
Quote: Originally Posted by veetid
You might could try converting it to J# and it might work as a CFPlugin...
david
or can open Visual Studio .Net go to File --> Open ---> Convert
select Java Language Conversion Assistant and then next
select Directory containing project files
select your files and then complete the wizard.
it will convert your java code to C# then you can compile it and use it easily with CF
good luck
|
|
|
07-25-2006, 06:44 AM
|
#4
|
|
Constant Bitrate
Join Date: Jul 2006
Location: CT
Vehicle: 2000 Chevy Blazer 4door 4x4
Posts: 198
|
veetid and bishooman .. thanks ill try this tonight after work thanks!
__________________
Carputer Status:MobileOne: Gentoo reinstall/optimization - coming soon!
MobileTwo: ubuntu quick fix while MobileOne's out of service -- worklog-- GeekBlog--
Audio: stage 2 nearing completion
|
|
|
07-25-2006, 09:58 AM
|
#5
|
|
Variable Bitrate
Join Date: Jan 2005
Location: Liverpool, England
Vehicle: 1999 JDM Subaru Legacy B4 RSK
Posts: 334
|
This might work
App: C:\WINDOWS\SYSTEM32\CMD.EXE
Params: /C START C:\YourApp\YourApp.class
or
Params: /C START /MIN C:\...\bin\java.exe C:\YourApp\YourApp.class
Failing that, knock up a wrapper in autoit that hides any unwanted command windows.
|
|
|
07-26-2006, 04:31 PM
|
#6
|
|
Constant Bitrate
Join Date: Jul 2006
Location: CT
Vehicle: 2000 Chevy Blazer 4door 4x4
Posts: 198
|
Quote: Originally Posted by Lum
This might work
App: C:\WINDOWS\SYSTEM32\CMD.EXE
Params: /C START C:\YourApp\YourApp.class
or
Params: /C START /MIN C:\...\bin\java.exe C:\YourApp\YourApp.class
Failing that, knock up a wrapper in autoit that hides any unwanted command windows.
tried this and just couldnt get it to go, it doesnt like the c:\java\relay\relayGui.class paramater ... ill try something else .. good thought though
__________________
Carputer Status:MobileOne: Gentoo reinstall/optimization - coming soon!
MobileTwo: ubuntu quick fix while MobileOne's out of service -- worklog-- GeekBlog--
Audio: stage 2 nearing completion
|
|
|
07-26-2006, 04:59 PM
|
#7
|
|
Variable Bitrate
Join Date: Jan 2005
Location: Liverpool, England
Vehicle: 1999 JDM Subaru Legacy B4 RSK
Posts: 334
|
If you double click on the .class file within windows, does it load correctly?
|
|
|
07-26-2006, 08:03 PM
|
#8
|
|
Constant Bitrate
Join Date: Jul 2006
Location: CT
Vehicle: 2000 Chevy Blazer 4door 4x4
Posts: 198
|
no, even if i point it to "open with" c:\...\bin\java.exe it does not
__________________
Carputer Status:MobileOne: Gentoo reinstall/optimization - coming soon!
MobileTwo: ubuntu quick fix while MobileOne's out of service -- worklog-- GeekBlog--
Audio: stage 2 nearing completion
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:31 AM.
|
|