Please, tool for automatic java source conversion?

Hi,
Apart from Sun's jilkit, do you know a software a software that could take the
first java source below as input and automatically produce:
     1) a converted java source file similar to the second file below;
     2) resource files (e.g. mess.properties, mess_es_MX.properties, mess_fr_CA.properties) .
We know that Sun's jilkit does this but we tried it and it is buggy and
Sun no more supports it.
// INPUT FILE
import java.util.*;
public class Test
public static void main(String args[])
System.out.println("Hello world!");
System.out.println("You must Walk from " + args[0] + " to " + args[1] + "Km");
// OUTPUT FILE, we want this done automatically
import java.util.*;
public class Test
public static ResourceBundle resourceBundle = ResourceBundle.getBundle("messages");
public static void main(String args[])
System.out.println(resourceBundle.getString("Hello world!"));
System.out.println(
java.text.MessageFormat.format(
resourceBundle.getString("Walk from {0} to {1}Km"),
new String[]{"" + args[0], "" + args[1]}
}

The javadoc tool has no such capability. I believe some IDEs have
this, but don't know which ones. You could also look at these places:
http://java.sun.com/j2se/javadoc/faq/#docletsfromthirdparties
http://doclet.com
If you find a good tool, you might mention it here for others.
cheers,
-Doug

Similar Messages

  • Is there an tool for automatic re-indent source code ?

    Hi
    Where could i found an Tool for automatically indenting source code ?
    Regards
    Philippe

    Jdev can do this as well. Select the class you want to re-indent in application navigator, and select Reformat (or use shortcut Ctrl-Alt-L). Your code is re-indented and formated according to code-style defined in preferences.

  • A tool for merging java code

    Hi,
    I m in need of a tool for merging java code.Sould be a free ware.
    Please suggest me.

    Look at this link : http://www.prescient.com/prod02.htm
    Is this what you mean?
    There is a trial version available.

  • Pre verify tool for wireless Java apps - HPUX

    Hi wireless gurus,
    1. Does Oracle ships a pre verify tool for wireless Java apps for HPUX platform with any of it's products.
    2. Please let me know any such tool for HPUX, preferably with a free demo version

    Hi wireless gurus,
    1. Does Oracle ships a pre verify tool for wireless Java apps for HPUX platform with any of it's products.What kind of pre-verify tools are you referring to?
    If you are looking something to verify Java code in general, then Jdeveloper has some features built-in for this purpose.
    The Oracle9IAS Wireless service designer allows you test, try, and debug wireless apps.
    2. Please let me know any such tool for HPUX, preferably with a free demo version

  • Access Java Proposals for a java source code programmatically

    Hi,
    Problem
    Programmatically get java proposals for a java source code (not byte code) via eclipse bundle
    Description
    I am developing one eclipse osgi bundle to correct java source code automatically. I am running osgi bundle inside eclipse itself [Version: Mars Release (4.5.0)]. I am able to get java project object and a class object inside it which I want to correct. Every time I try to collect java code proposals as I put one test file which can be corrected (like duplicate imports), I receive below error:
    Java code line
    JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { problem }, proposals);
    Error description
    !ENTRY org.eclipse.jdt.ui 4 2 2015-07-27 18:57:09.196
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
    !STACK 0
    java.lang.IllegalStateException: Workbench has not been created yet.
    at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
    at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.install(ASTProvider.java:236)
    at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.<init>(ASTProvider.java:227)
    at org.eclipse.jdt.internal.ui.JavaPlugin.getASTProvider(JavaPlugin.java:741)
    at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
    at org.eclipse.jdt.internal.ui.text.correction.AssistContext.getASTRoot(AssistContext.java:119)
    at org.eclipse.jdt.internal.ui.text.correction.LocalCorrectionsSubProcessor.addUnusedMemberProposal(LocalCorrectionsSubProcessor.java:669)
    at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.process(QuickFixProcessor.java:530)
    at org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor.getCorrections(QuickFixProcessor.java:316)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionCollector.safeRun(JavaCorrectionProcessor.java:378)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionProcessorAccess.run(JavaCorrectionProcessor.java:339)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor$SafeCorrectionProcessorAccess.process(JavaCorrectionProcessor.java:335)
    at org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionProcessor.collectCorrections(JavaCorrectionProcessor.java:468)

    Any code from org.eclipse.jdt.ui (or the non-API code in org.eclipse.jdt.internal.ui) is likely to require a running workbench. Only the code from org.eclipse.jdt.core is guaranteed to work headlessly.

  • XJC Tool - For building Java classes from Schema

    Hi all,
    I am using XJC tool for Building java classes from Schema.
    Can we have any other tool for generating java classes from Schema?
    Thanks in advance,
    typurohit

    Solved my own problem and forgot to post the answer: the "xsd:import" is also considered as a targetNamespace, so each xsd:import needs a package specified as well when using oracg. It would be helpful if the Oracle documentation had stated that, but it does not point this out.

  • Tool for Packaging java-based ISV-Products

    hi colleagues,
    ISV abap-based  prouduct (abap addon) can be packaged/deliverd via AAK. Do we have similar tools for java-based partner products?
    thx a lot for your help
    regrads
    Abdu

    done

  • J2EE BluePrints: correct location for common Java source files

    I have a set of Java source files that are common between multiple J2EE applications.
    Within the J2EE package hierarchy, what is the correct location for these files?
    Also, is there a typical package name that common Java source files are grouped under?

    HI,
    There is no standard place. In the blueprints project conventons
    http://java.sun.com/blueprints/code/projectconventions.html it has a place called components/ which would contain shared components like EJBs and other components that could be shared across applications. the package naming would be reflected in that, like com.sun.blueprints.application1. and com.sun.blueprints.application2. and com.sun.blueprints.common.*
    Generally you could put a directory at the same level as the apps (not inside an app's directory structure) and maybe called common/ or shared/ . This common code could be built separtely and into a binary library or jar that you just include in the other applicatons, in the same way you would include some external library jar that you got somewhere and keep in your workspace and your apps use. The packaging of common code is similiar to the packaging of different applications and shared components.
    hth,
    Sean

  • Tool For converting java code to UML

    Hi,
    Does anyone know any FREE tool to convert Java application to corresponding UML ..
    --jj                                                                                                                                                                                           

    Hi,
    Thanks for the options ... what about the printing options
    --jj                                                                                                                                                                                           

  • Any tools for converting java class to xml schema ?

    Hi,
    Are there any tools out there that can convert my java class to xml schema. How such tools take care of java collections like HashTable, ArrayList etc. in my class structure. I am not interested in writing any configuration files(like jaxb configuration files, jibx binding xml files etc.) for serving this purpose and the can be able to give me xml schema from the java classes. Please suggest ...
    I am not sure even JAXB 2.0 allows me to do this without writing any jaxb configuration files or annotations in my java class which is not there in JDK 1.4.2
    Thanks & Regards,
    Kr.

    Hi,
    You can convert the EDI file to XML in any of the ways
    1) Using third party seeburger adapters
    2) Conversion agent
    3) Stylus studio.
    I think using java code it will be very difficult.
    Thnx
    Chirag

  • Sending Premiere Pro sequence to Pro Tools for automatic audio conforming

    I’m looking to implement an online-offline workflow at my production company, and I’m trying to figure out if it’s feasible to send a sequence from Premiere Pro to Pro Tools with enough metadata to take advantage of Pro Tools’ automatic conforming feature.
    Premiere Pro or Audition doesn't seem to have any kind of feature like this, so I’m turning to Pro Tools. Here’s a demonstration of the feature from Avid: http://youtu.be/Gz9e9LuIdXU
    For color grading, we’re already sending XML from Premiere Pro into DaVinci Resolve, and DaVinci Resolve perfectly automatically conforms the offline proxies to online high-quality clips suitable for grading. I’m trying to accomplish the same thing with the audio clips to prepare a sequence for sound mixing. The offline proxies in a sequence contain only compressed stereo tracks, but online audio clips have all of the separate uncompressed tracks for each microphone.
    My initial thought was that, before any offline editing occurs, I might, in the Premiere Pro Metadata panel, add the names of the sound rolls to all the offline proxies in the “Tape Name” field.
    I’m wondering if that metadata for those clips in the Premiere Pro Project Panel are included in an EDL that would be exported out of Premiere Pro, so that Pro Tools would know how to correctly choose online audio clips.
    I know EDLs contain timecode, and that seems like it would be sufficient for Pro Tools, if production only occurred within one day. However, if there are audio clips recorded on different days, at the same time of day, some audio clips in a sequence would have identical timecode, and Pro Tools wouldn’t know which clip to automatically conform. It seems like Pro Tools would choose which clip to conform by first looking at timecode, and then if there were multiple clips with the same timecode, it would resolve the conflict by identifying the specific sound roll. This is why it seems important to have the sound roll metadata included in the EDL out of Premiere Pro.
    EdiLoad looks like software that might be able to batch update sound roll metadata for an EDL already exported out of Premiere, but I’m not sure.
    http://www.soundsinsync.com/products/ediload
    Manually going through Pro Tools and assigning correct sound rolls in a picture-locked cut wouldn’t really be an improvement over manually conforming. If I have to go through a cut and locate online audio clips, I might as well just conform manually.
    So my questions are:
    When exporting an EDL out of Premiere, does the EDL include “Tape Name” metadata for Pro Tools to read as a sound roll? If not, is there another format I could use that would make this round-trip feasible?
    If not, does anyone have experience with EdiLoad? Would EdiLoad work to do what I'm trying to do?
    Is there any other way to accomplish automatic conforming, or something else that I'm missing?
    -- Seth.

    See if this helps.
    FAQ: Why are some codecs and sequence presets missing from my installation of Premiere Pro?

  • Tools for Comparing Java Class Files

    Are there any tools out there that can compare two .class files to see if they are the same ?? Please help.
    Janet

    In Windows there's the FC command that compares two files to see if they are identical. In Unix there is no doubt a similar command. Or you could write a small bit of Java code that reads the two class files and compares them byte by byte.

  • Tools for generating java files

    Hello!
    I need a tool which can generate .java files (just like rmic generates _Stub.java files). 
    I know Velocity but i'm looking for something better. Can you help me?
    Kuba Kr�likowski

    rmic does not generate Stub and Skel .java
    files, but it generates .class files.
    (just a side-note)RMIC always produce .java files at first - you can keep them using -keep or -keepgenerated option!
    Kuba

  • Off topic:  Tools for to Merge Source Code

    Hi
    somebody some tool that did merge between 2 source code, to compare and to update a of side source code when show they is not equal, (of course, It did it when We want)
    thank

    Most version control system offer such a thing. Check out subversion as one example.
    Also TOAD has a "compare files" function. You might even go for MS Word to check differences between two files.
    Your source code must be saved as a file fist of cause.

  • Tools for reformat java code

    Hello, everyone, i need to maintain a project coded in Java. The codes are not will formated and very hard to read. Does any one know that kind of software can help me to reformat these code and make it more readable?
    Thanks a lot!!!

    If you do a forum or google search for "Code beautifier" you should get some suggestions.
    I use the code formatter built in to IBM VisualAge for Java (but not everybody can afford that app!)

Maybe you are looking for