OZmium Sports Betting and Horse Racing Forums

OZmium Sports Betting and Horse Racing Forums (http://forums.ozmium.com.au/index.php)
-   Horse Race Betting Systems (http://forums.ozmium.com.au/forumdisplay.php?f=10)
-   -   Learn to Code Your Own Horse Racing Database - Lesson 1 (http://forums.ozmium.com.au/showthread.php?t=21326)

YoungBuck 6th April 2011 09:29 AM

Quote:
Originally Posted by Shaun
You need to get that working or you won't be able to compile your program, this means you won't be able to put it all together to run, i have same issue on win 7 i am going to try an uninstall and reinstall in different location.
Oh i see.

I too am using w7, i just thought that windows way was optional, you could choose to bypass it and use Netbeans to compile - "We recommend using the NetBeans IDE instead of the command line whenever possible"

I tried re-installing but not yet at new location. I'll try your suggestion too.

stugots 6th April 2011 11:59 AM

there are 32 bit & 64 bit versions of javac, which may be the reasons for your install problems on windows7 as I had no problems?

Shaun 6th April 2011 12:06 PM

Windows 7 will run both so maybe the 32 bit version might be better.

wesmip1 6th April 2011 03:54 PM

Quote:
Originally Posted by thorns
Hey Wesmip,

Thanks for taking the time to do this thread.
Quick question, are you planning on leaving this thread up for a while? I am about to go away on holiday for a couple of weeks, so wont be able to start till after I get back.

Cheers

thorns,

It will be here when you get back. I'll monitor the threads for people who start late :)

wesmip1 6th April 2011 04:02 PM

shaun, Youngbuck,

If you get issues with "'javac' is not recognized as an internal or external command, operable program or batch file".

It means that the environment path has not been setup correctly. To fix this find the directory that hs javac.exe in it (it will be in your JDK directory\bin).

Go to the control panel in windows and go to System. Half way down you should see something about Computer Name, Workstation, etc. There is a change setting sbutton here. Click that and another screen opens. Go To advanced. Click on Environment Variables. In the bottom section you should see an entry called Path. Edit this entry and add in the directory where you found the javac.exe file.

For example my path currently is:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;c:\ Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\IEInspector\HTTPAnalyzerFullV6\;%SYSTEMROOT% \System32\WindowsPowerShell\v1.0\

If javac.exe was in c:\java\bin\javac.exe I would change the above to be:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;c:\ Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\IEInspector\HTTPAnalyzerFullV6\;%SYSTEMROOT% \System32\WindowsPowerShell\v1.0\;c:\java\bin\


Notice the use of ; to seperate the directory paths. You may need to restart windows to pick it up (sometimes you don't). It should then find javac from any directory.

wesmip1 6th April 2011 04:04 PM

Most of the time we will be using netbeans to do the compiling so even if ou can't find javac on the command line that is ok. As long as netbeans can compile a program you will be fine.

As far as 32 bit vs 64 bit. I would stick with 32 bit as I find 64 bit applications usually have compatibility issues. But if you installed 64 bit thats ok.

moeee 6th April 2011 06:34 PM

Too Old Too Slow
 
My Computer is probably too Old and lacking in stuff needed to run these Netbeans.

I installed the Programs and was doing the suggested HelloWorld App.

I got up to where it said to replace a line where it wrote "Todo something or rather" and type in "Hello World".

I was mucking about tryying to delete the line and the program locked up.
So I closewd the program and tried reopening but it seems the program wasn't saved prior to the lockup.

I figure I need to try again, but got annoyed and an gonna do tonights dogs and have a play again maybe tomorrow.

If it weren't so slow I woulda persevered.
When I did reOpen, it suggested I may have a virus or something.
I wouldn't be surprised because I have been visiting a few porn sited lately.]
Them Free Peep shows sure are addictive :)

Raven 6th April 2011 08:02 PM

I havent had any problems with Netbeans (on Vista). When I downloaded there was an option to download the Java & Netbeans in one bundle, so I went for that option.

But my laptop will be crashing anytime soon, i can sense it. Since the weekend it freezes constantly, I have to do emergency shutdown & reboot 3 or 4 times a night & and thats just in the 2-3 hrs i have since i come home from work. I've tried downloading new drivers etc, but still the same.

Back on topic, today i got some info in the mail about a certain racing database, been around since the 80's. I was interested, until i saw the price, lol. Almost 3 grand each year, add another $1100 for some back data to kick you off & another $660 for data updates, almost 5 grand. Just have to perservere & learn to DIY.

footnote: I'll need that cash for a new pc anyway

wesmip1 7th April 2011 06:07 AM

As per most IDE's they can be a bit memory intensive.

An alternate IDE to use that is not as memory intensive is eclipse. I only recommend netbeans as it is slightly easier to use especially if you want to make a GUI (graphical user interface) for your application.

Eclipse is less memory intensive and is my preffered IDE to use but it will be a lot more complicated to use for first time coders.

But if you find netbeans keeps locking then install the latest Eclispe version and use that instead.

moeee 7th April 2011 07:03 AM

Netbeans? Eclipse?
 
I only run Windows XP.
I might possibly Upgrade one day to Vista, but only if forced to for some unforeseen reason.

So do I need this Netbeans thing?
If Eclipse is okay then it appears that Netbeans ain't essential.
But do I actuall need an IDE? (whatever that is:) , I thought it was something to do with hard drives, First IDE , Second IDE )
Is it necessary to have this IDE thing and follow this thread ?
Or is it all exactly the same if I only have the JDK 6 Program installed?


All times are GMT +10. The time now is 08:46 AM.

Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.