|
Probably be easier and faster to find an OS command and use Runtime.exec.
|
|
|
|
|
I want to develop analytics application in java. Can somebody help me with how to start, what should looking into interms of technology and example codes.
Thanx
|
|
|
|
|
This question is impossible to answer in a technical forum, as it pertains more to system design than programming. If you need help learning Java then I would suggest you start here[^].
The best things in life are not things.
|
|
|
|
|
To start of, write down:
- What is it that needs to be analysed?
- How/where will this information come from?
- How does it need to be displayed, i.e., do you need graphs or charts, or is a simple spreadsheet
sufficient
- Who needs the information, this will indicate the level of analyses required, i.e., for a high
level person, the information needs to be well analysed and formatted, if it is for auditing
purposes, then you might not want to analyse the data at all (rather pass it on to the auditors
and let them take care of it)
- Is there a schedule required, or is it only once off?
- How should the results be accessed, from the web, emailed, posted, etc. (You should probably dump
the results in a pdf format, in which case you can have a look a iTextSharp - I love this
library!!!
- After you have received the results, does the person reading the results require it to be
modified, i.e, If I change this value, what would the effects be in 5 years time?
- How important is speed? This will be determined by when the analyses should be done, if it is a
nightly batch job, then speed is not that important, anything else, speed is important.
- The program itself, is a console application sufficient, or should it look pretty? If prettiness
is a factor, look at WPF or Silverlight (depending on whether it is web-based, or standalone).
This will also indicate the speed/performance.
- Do you need additional hardware, such as a more powerful server that can take the processing
punch
This is all I can think of, but based on what you provided, this would be a good place to start.
Based on your assessment - or, requirements analysis - you should then look at technology.
|
|
|
|
|
I developed a project in Eclipse. There are 2 java classes in my project. One of them is Server.java and the other one is Client.java. In order to run Client.java, I have to run Server.java firstly. When I creating an executable jar file, should I set the order that I mentioned above? I want when I click on the exe file firstly Server should run and then Client. Any suggestions?
Thanks..
|
|
|
|
|
Set up a 3. class to start the party.
Add a Thread[^] and let the client start 5 sec. after the server.
regards Torsten
I never finish anyth...
|
|
|
|
|
In server.java make use of Runtime.getRuntime.exec(command) to execute client.java
|
|
|
|
|
I need a program like "offline explorer".
I could get someone to help me do this.
|
|
|
|
|
I recommend to ask Larry Page and Sergey Brin. They do this all the time - it's called Google. A fantastic website where you can enter "offline browsing freeware"[^]. The result is amazing!
regards Torsten
I never finish anyth...
|
|
|
|
|
Thank you for the help, but I want to source code a Java program that acts like offline explorer.
|
|
|
|
|
Ah - now we are talking about software development.
what's your skills? Any ideas about which tools to use?
regards Torsten
I never finish anyth...
|
|
|
|
|
I recommend two pieces of flint and some kindling.
|
|
|
|
|
that would give the idea heat!
And if he doesn't go for the project, he can even roast some bacon on it. That's a win-win!
regards Torsten
I never finish anyth...
|
|
|
|
|
yes that is true..it is really a win-win solution.
|
|
|
|
|
Dear all,
I'm a newbie in Java programming, actually, I'm a Microsoft programmer
One of our customer asks me to develop an application using Open Source langages !
The application is easy:
1. A SQL (MySQL) database
2. A frontEnd to manage the SQL database (new user, changing password ...)
3. A frontEnd for users to see only their own environment (get usage statistics, profil ..)
4. WebServices for mobile system (it seems to be Microsoft Mobile 6 PDAs and maybe Android tablet) to get and update informations in the database
So I started having a look at Jboss, GlassFish, JSF, Hibernate ....... arg, now I'm lost.
What is your opinion ? For my application, what will be the best platform ? Or will it be a mixed technologies (I had also a look at ZendFramework) ?
I know it's quite a general question, but I read so many different opinions on this platforms ..
Thanks
Sylvain
|
|
|
|
|
Hi,
use products of Microsoft like Net etc..
If possbile, try IDE Eclipse with MS software.
|
|
|
|
|
- Eclipse
- Hibernate
- a good book for JAVA in general.
regards Torsten
I never finish anyth...
|
|
|
|
|
|
i love hibernate..it is really amazing and powerful
|
|
|
|
|
It's impossible to answer without knowing more about what you are trying to build. For example, when you say a "front end" what does that mean? Desktop? Browser-based? Cross-platform? Windows only? Thin client? Thick client? Web 2.0?
If it is a smaller-scale web application then you may find that some off the shelf frameworks like Grails or Seam might help. If it is a larger scale desktop application then maybe the Netbeans platform or Eclipse RCP might be of interest. Hibernate can help with the database layer, but has its limitations particularly if you are dealing with a legacy database which is not under your control.
Without more information there's a limit to how much advice we can give, I'm afraid.
|
|
|
|
|
FrontEnd is a browser based application .. web 2.0, why not
It's a small scale web application. I'll look at Grails or Seam.
|
|
|
|
|
Sylvain_D wrote: One of our customer asks me to develop an application using Open Source langages !
I would suggest you go back to your customer and ask exactly what they mean by 'open source' in this context. Jumping from that question to feeling that you need to use some Java technology to solve it is a somewhat sideways step. If your competence is in Microsoft programming then that would be the best way to go, as you would probably get the product completed faster. Forget the technology for the moment and concentrate on figuring out the best way to solve your customer's problem.
The best things in life are not things.
|
|
|
|
|
The client is a city only using MySQL, Java and PHP technologies.
There is no investment possible in Microsoft licences for this solution.
It's a small app.
What I'm sure is that the client is using JavaServer Faces and Hibernate.
I can focus on the functionnalities for sure .. and I'll have to !
Sylvain
|
|
|
|
|
Is it running on a Linux backend? If they are running on Windows, you could get away with developing in .NET (it costs the client nothing wrt licenses and can easily connect to MySQL). It's also possible to hook ASP.NET into Apache.
|
|
|
|
|
Good day,
I have been battling with this for a while now, and have been at previous forums regarding this problem, all leading to non-working solutions.
Note: I am using NetBeans IDE 7.0 and java 1.6.0_25 on a Windows XP SP 3 machine.
I want to run the application without using the command line, although using the commandline gives me exactly the same error.
I have tried numerous other forums, even consulting the java forums, but all to no avail. Most of the forums make mention about editing the build file, but not being a java guru (c# is more my thing), I have no idea what to do! (I am including my build.xml as well as the manifest.mf file which is contained within the .jar file for anybody who wants to have a peek at it.)
When I run the application from within NetBeans, everything works fine.
I thought that maybe something went wrong with my java installation, but (fortunately?) I had a BSOD, so I was forced to format my system, which then received a very fresh installation of NetBeans as well as java, but the error still remains.
If you could help me, it would be much appreciated!
Just ask if you need additional files or information,
Kind regards,
Rossouw
EDIT: When I run the application from within NetBeans, it informs me that it cannot find some of my packages, but when I first build and clean it, and then run it, it runs fine.
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="OmniIDE" default="default" basedir=".">
<description>Builds, tests, and runs the project OmniIDE.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="OmniIDE-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
manifest.mf (contained within the .jar file)
Note: The format of the contents of this file is exactly the format of the original file's contents.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_25-b06 (Sun Microsystems Inc.)
Main-Class: omniide.OmniIDEApp
Class-Path: lib/appframework-1.0.3.jar lib/swing-worker-1.1.jar lib/Ab
soluteLayout.jar lib/swing-layout-1.0.4.jar lib/beansbinding-1.2.1.ja
r
modified on Monday, July 11, 2011 5:01 AM
|
|
|
|
|