Itzy wrote: » Would you not expand your skills to C#? Similar language and builds an exe automatically upon compilation.
CountyHurler wrote: » Hi Itzy, I spent a lot of time learning Java, even though I havent really had much practical use for it (as most of my jobs have been in networking). So I wanted to try and get some use out of it... However, I never use it for anything object oriented, most of the things I need to do would be file copies, ip address changes etc etc.. practical stuff.
Itzy wrote: » Here's a code example of changing an IP with C#
GreenWolfe wrote: » OP, why aren't you using a scripting language instead? In general, they're more suitable for system administration.
CountyHurler wrote: » Yeah I've been going through sample code for a few IP programs and it's all pretty similar. The way the classes are instantiated, creating the GUI with stock widgets/buttons/frames, the formatting of the language... all very similar. I've downloaded MonoDevelop Xamarin (suggested by a tutorial I watched) and I'm gonna give it a whirl. Yeah I thought about using PowerShell. I'm learning bits of it at the moment with studying for the 70-410. But I'd like be able to create a simple GUI for some of our other engineers to use, and this rules out PowerShell... Also, I dont think PowerShell is installed by default in XP... I'm not a big fan of Visual Basic either, and I had visions of trying to run scripts on the PCs and coming up with issues with AV / Firewall etc.Okay, last chance for somebody to talk me out of C# ??
CountyHurler wrote: » I've downloaded MonoDevelop Xamarin (suggested by a tutorial I watched) and I'm gonna give it a whirl.
CountyHurler wrote: » Be a self contained executable that will not need any other software pre-installed to run.
CountyHurler wrote: » 2. Be a self contained executable that will not need any other software pre-installed to run.
CountyHurler wrote: » Okay, last chance for somebody to talk me out of C# ??
Kidchameleon wrote: » They will need the JVM. Although this comes with most OS's by default, it may need updating from time to time. Jar's are a total bit*h to distribute, they work on one machine and flop on others, I don't know why Sun/Oracle don't do something about it.
CountyHurler wrote: » most of the things I need to do would be file copies, ip address changes etc etc.. practical stuff.
srsly78 wrote: » Even C/C++ needs the appropriate runtime installed Sure you might be able to make do without it, but that would mean no STL etc etc - might as well write it in assembly then.
Graham wrote: » Have you considered using plain old batch files? No need to install any runtime on the end machine.
srsly78 wrote: » Use the official microsoft one, the tools are better. I still don't understand why you don't use java tho... You just point users at the appropriate JRE and tell them to install it, if they can't figure that much out then there is no hope.
some guy wrote: "Here is what I do My jar file is in a dist folder -copy the system jre folder to dist\jre-win-1.7.0_04 -create a .bat file with the following line in it jre-win-1.7.0_04\bin\java.exe -jar MyProgram.jar"
srsly78 wrote: » You can just have the JRE in a subdirectory can't you? All of it on a usb stick, not a big deal.http://stackoverflow.com/questions/13045719/how-to-deliver-my-java-application-with-a-particular-jre Ignore the answer marked correct, since you only care about x86 windows platforms.
ressem wrote: » Just about a few issues above... 1. you can use powershell to work with windows forms to create a gui.http://www.codeproject.com/Articles/103681/A-Quick-Guideline-for-Microsoft-Windows-PowerShe