VB to Java Converter

Help! I am looking for a Visual Basic to Java Converter. Can anyone recommend a good site, product or resource?

As far as I know, this is the best VB to Java converter:
http://www.tvobjects.com/products/Convert-VB-to-Java.html

Similar Messages

  • Can Java convert text in to three dimensional forms?

    Hi,
    I'm an MA student at Central Saint Martins College of Art and Design in London. I'm currently working on a project to convert text, entered onscreen by users, into three dimensional forms when initiated by clicking on a button. Each 3D form is to be unique to the text entered. Does anyone know how best to do this and whether Java is the best tool for this? Any help or ideas that can be offered will be greatly appreciated.
    Thanks

    Hi,
    Thank you for your help, the link is a great starting point in the development of my project, but its not the "nail on the head", which is my fault. On reading back my last posts it seems I omitted a key word (sorry, my mistake) in the description of what I want to do, which is: "…can Java convert text into abstract three dimensional forms?" By abstract three dimensional forms I was hoping to create something along the lines of what is possible with Rhinoscript, here is an example of the type of visual I want to be able create from the transformation of user entered text using computer code: http://www.theverymany.net/uploaded_images/080108_Srf_Test001_01_k_TVM-718625.jpg. I hope this sheds some light on the direction I'm hoping to take, so if you or anyone else can offer any more help or pointers I will be eternally grateful.
    Thanks

  • .Java convert to .exe

    What is the easiest & cheapest way to convert java code to an exe file so it will run without all the JRE etc?

    Is this true? At one time Microsoft had the fastest
    JVM on the planet.Correct, but the problem was that according to Sun they tried hard to destroy the most important advantage of Java - namely its platform-independence. That was the cause of Sun's lawsuit against Microsoft.
    Imagine if
    Microsoft and Sun had left Java out of their feud for
    the benefit of the programming community. Then Java
    would have been THE modern OO language of choise
    today. I blame both companies equally for this.I don't know if Sun could have done this any different. I am sure that, behind the scenes, they tried to convince Microsoft to "play along" with the basic idea of Java. I think that if Sun had let Microsoft continue with making their Windows-specific Java, it would have meant the death of Java as we know it today. As I see it, Microsoft doesn't care about benefitting the programming community in any way. Perhaps Sun isn't entirely innocent either, but I certainly like their ways of doing business much better.

  • Java converts wrong Timestamp

    The following code return the same date.
              SimpleDateFormat formater = new SimpleDateFormat();
                 formater.applyPattern("yyyy-MM-dd hh:mm");
                 Timestamp ts = null;
                 try {
                   ts = new Timestamp (formater.parse("2006-10-10 12:00").getTime());
                   System.out.println(ts);
                   ts = new Timestamp (formater.parse("2006-10-10 00:00").getTime());
                   System.out.println(ts);
              } catch (ParseException e) {
                   e.printStackTrace();
              }If you see I have put different hour 12:00 and 00:00. I need both in the database. System.out prints:
    2006-10-10 00:00:00.0
    2006-10-10 00:00:00.0So, I have only 23 Hours a day, instead of 24.
    What was my mistake?

    Note the difference between h and H in the formatting characters.

  • Java Convert an Image to a Matrix

    Hi all :)
    I'm just wondering if there is some sort of method which allows me to create a matrix (or array of pixels) of a .tif image?
    Thanks,
    Alex.

    Umm I've just tried that and it doesn't work for my .tif file.
    I just need it to just print like that matrix or array of the image in the non-graphical form, so then I could read the values and change them.
    Thanks :)

  • Java Shapefile Converter error ORA-13050

    Hi,
    i'm trying to convert a shape with the java converter and following the documention i make these steps:
    In our installation of ORACLE 11g we don't have the folder "[ORACLE_HOME]/md/". Then i've downloaded from here http://www.oracle.com/technetwork/database/options/spatialandgraph/downloads/software/sp-download-distlic-522138.html the required .jars
    I launch the java program with the next cmdline: java -classpath %ORACLE_HOME%\jdbc\lib\ojdbc6.jar;Y:\oracle11_libs\sdoutl.jar;Y:\oracle11_libs\sdoapi.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h %HOST% -p %PORT% -s %SID% -u GISTEST -d GISTESTPRE -t edificis_area -f gis_edificacio_perimetre_base_polygon -r 23031 -g geom -o 0.0001
    While with points and lines there is no problem, with polygons it returns the next result:
    db_username: GISTEST
    db_password: GISTESTPRE
    db_tablename: edificis_area
    shapefile_name: .\historic_20020103\20020103_expHistoCarto\01_Global\EPSG23031\SHAPE\gis_edificacio_perimetre_base_polygon
    SRID: 23031
    db_geometry_column: geom
    tolerance: 0.0001
    Connecting to Oracle10g using...
    GISTEST, GISTESTPRE, edificis_area, .\historic_20020103\20020103_expHistoCarto\01_Global\EPSG23031\SHAPE\gis_edificacio_perimetre_base_polygon, null, 23031
    Dropping old table...
    java.sql.SQLSyntaxErrorException: ORA-00942: la tabla o vista no existe
    Creating new table...
    java.sql.SQLException: ORA-13050: no se ha podido construir el objeto espacial
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 316
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 597
    Record #1 not converted.
    java.sql.SQLException: ORA-13050: no se ha podido construir el objeto espacial
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 316
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 597
    The first thing that i found strange is the print of 'Oracle10g' and then we found the use of MDSYS.SDO_MIGRATE in the trace's error that it mean's the conversion between different versions of Oracle.
    Does anyone know where the problem is?

    If anyone else could take a look at this: It seems to be depending on the version. We are running into the exact same problem when using 11.2.0.3.0, but when using
    11.2.0.2.0 we can import the shape file without a problem. Both versions are the 64-bits version, btw.
    When trying a different approach using SQL Loader, we found that apparently there is an ordinate not quite right:
    Record 1: Rejected - Error on table "WOZ"."C_IMPORTED_DATA", column "GEOMETRY".SDO_ORDINATES.SDO_ORDINATES.
    error converting data
    ORA-01722: invalid number
    It is strange that one version can deal with this, but the other cannot. Is there anyone from Oracle who can take a look at this? We are now changing our strategy, but would prefer not to have to :-)
    Regards
    Stefan

  • Trouble converting this routine to Java

    Has anyone written a C-Intercal to Java converter (is libcintejava.so it?)
    PLEASE NOTE THAT THIS MAY ONLY RUN ON C-INTERCAL
            PLEASE DO ,1 <- #13
            DO ,1 SUB #1 <- #584
            DO ,1 SUB #2 <- #837
            DO ,1 SUB #3 <- #1100
            DO ,1 SUB #4 <- #1356
            DO ,1 SUB #5 <- #1615
            DO ,1 SUB #6 <- #1824
            DO ,1 SUB #7 <- #2135
            DO ,1 SUB #8 <- #2383
            DO ,1 SUB #9 <- #2642
            DO ,1 SUB #10 <- #2892
            DO ,1 SUB #11 <- #3140
            DO ,1 SUB #12 <- #3361
            DO ,1 SUB #13 <- #266
            PLEASE DO ,2 <- #1
            PLEASE DO .5 <- #0
            PLEASE DO .4 <- #1
            PLEASE COME FROM (1)
            DO .6 <- ",1 SUB .4"~#255
            DO .6 <- !6~#15'$!6~#240'
            DO .6 <- !6~#15'$!6~#240'
            DO .6 <- !6~#15'$!6~#240'
            DO .1 <- .5
            DO .2 <- .6
            PLEASE DO (1010) NEXT
            DO .3 <- .3~#255
            DO .5 <- .6
            DO ,2 SUB #1 <- .3
            PLEASE READ OUT ,2
    (1)     PLEASE DO .4 <- ",1 SUB .4"~#3840
            PLEASE GIVE UPAny help would be appreciated

    Are you talking about building a chip simulator in
    java, or are you really talking about executing
    assembly code in java?
    The first is possible, but you'd probably need to code
    it. The second is not possible without JNIReally..neither..I just wanted the java equivalent for that C-Intercal routine.
    Umm.. Maybe I could write a java wrapper for the c-intercal libraries...or JNI might be an option...anyone else have any ideas?

  • Unicode support in java.io.File.listFiles()

    I am trying to list all the files in a given directory using the File.listFiles() method, yet for some reason the File objects returned have invalid paths when a file has unicode characters in its filename.
    example .. a test directory has these files
    tiga-dj_kicks.mp3
    tr\374by_trio-elevator_music.mp3
    if i call dir.listFiles() i will get ...
    tiga-dj_kicks.mp3
    tr?by_trio-elevator_music.mp3
    why is java converting my unicode into "?"s?
    i have seen other java apps that don't have this problem ... does anyone know why this is happening?
    in terms of my system ... i am on linux 2.4.20 in the US and i have tried may jdk versions including 1.3.1 and the latest 1.4.2 as well as blackdown 1.4.1

    It's true that System.out may not like unicode characters, so I instead I have been using a JTextArea and I know that supports my unicode.
    **eek ... after a preview it seems that my unicode isn't going to show up here either :( i'll wrap brackets around what was actually displayed as unicode in my environment.
    here is another test I have run ... println(String) just appends to the text area
    String original = new String("A" + "\u00ea" + "\u00f1" +
                   "\u00fc" + "C");
    println(original);
    File f = new File(original);
    println(f.getPath());
    f.createNewFile();
    String[] files = new File(System.getProperty("user.dir")).list();
    for(int i=0; i < files.length; i++)
    println(files);
    Output ...
    [[A???C]]
    [[home/ag92114/workspace/test/unicode-test/A???C]]
    Test.java
    Test.java~
    Test.class
    A???C
    As you can see ... the text area correctly displayed the unicode for the String and File objects that I constructed myself, but when I list back the file I just created then my unicode is lost.
    listing the directory on the shell yields ...
    [ag@home:~/workspace/test/unicode-test ] ls
    ./ ../ A???C Test.class Test.java Test.java~
    So possibly the file is not even written to the native filesystem with the unicode??
    Finally I tried opening xemacs and touching a file with a unicode filename and it works fine and displays in the shell just fine, yet when I list the dir contents in java then the unicode is lost. I touched the file [[A?]] using xemacs.
    shell view ...
    [ag@home:~/workspace/test/unicode-test ] ls
    ./ A???C Test.class Test.java~
    ../ [[A?]] Test.java
    java lists files as ...
    Test.java
    Test.java~
    Test.class
    A???C
    A?
    normally this is where I would concede that java just isn't capable of handling unicode in the filesystem, but I know that isn't true because I have tried other applications (jEdit, limewire) that both seem capable of listing and displaying directories and files that contain unicode. i just wish i knew how they were doing it.

  • How to prevent unicode conversion in Java?

    Hi all,
    There are some existing Chinese characters stored in our RDBMS using charset=IBMPC850. The text can correctly be displayed using a window GUI developed by Visual C++ by declaring the field as DBCS. However, when I tried to retrieve the Chinese field back using JDBC and JSP. The words are distorted. I suspect that Java converts all string to unicode and no matter what encoding I tried to change when viewing my page, I still don't get the Chinese words correctly.
    On the other hand, if I enter Chinese characters through my JSP, I can read them back correctly using:
    resultSet.getString
    Does anyone have any ideas about this?
    Your help is greatly appreciated!
    Thanks in advance.

    My guess is that you need to tell your JDBC driver which encoding to use when talking to the database server. I don't know which DBMS or driver you use so I can't help you with that. :-(
    A workaround could be to manually convert the strings after they have been retrieved from the server, using some code like this:
    String s = resultset.getString(...);
    s = new String(s.getBytes(), "Big5");
    That should do the trick if the JDBC driver reads the characters using the default (in Java) encoding, and if the database is encoded in Big5 (I don't think it's encoded in IBM code page 850 since that is an 8-bit encoding used in western Europe).
    Good luck!
    Jesper

  • XPAAJ Java API question

    Hi,
    I am currently struggling with this task:
    I have created a PDF using livecycle, what i want todo is in java convert the generated PDF to an image, i cannot use the livecycle server, as it will have to generate on a client machine, that at the time might not be connected to the network/internet. I have tried numerous different libraries none seem to support Adobe Dynamic Form PDF. It keeps telling me i need a newer version of acrobat installed, obviously which i do have installed.
    Anyways if someone can point me in the correct direction it would be greatly appreciated.
    It needs to be a java based library.

    try this :)
    public static String GetTextFromHTML(String orgString){
                   String ls_new_string = orgString;
                   int li_index =0;
                   String ls_temp="" ;
                   try{     
                        while((li_index= ls_new_string.indexOf(">")) != -1)
                        ls_temp = ls_temp + " " ls_new_string.substring(li_index1,ls_new_string.toUpperCase().indexOf("<",li_index));
                        ls_new_string= ls_new_string.substring(ls_new_string.toUpperCase().indexOf("<",li_index),ls_new_string.length());
                   }catch(Exception e){
                        return ls_temp;
                   return ls_temp;
              }

  • Oracle / Java Issue

    Hello Everyone,
    My problem is that my oracle database I am pulling my data from has bullets inside of the fields. Now, a bullet is part of the extended ascii character set, ie takes 2 bytes. So, I tried to fix the issue with the following code:
    Where DB_Results is a result set object.
    try {
    InputStream myInput = DB_Results.getUnicodeStream( i );
    InputStreamReader myReader = new InputStreamReader( myInput, "UTF-8" );
    char []argh = new char[myInput.available()];
    myReader.read( argh, 0, myInput.available() );
    File myFile = new File("/html/https-orgunit/test/matt/testing" + i );
    OutputStreamWriter myOutput = new OutputStreamWriter(new FileOutputStream( myFile ), "UTF-8");
    myOutput.write( argh, 0, argh.length );
    myOutput.flush();
    myOutput.close();
    catch(IOException e) {}
    My problem is, I keep getting a 0 byte file, can anyone shed some light on this?
    I realize that getUnicodeStream is deprecated, but I think it should still work for my purposes.
    Thanks,
    -Matt

    Couple of blind suggestions to try (no promises though):
    1. Try using getBinaryStream() and let Java convert the results.
    2. Do all this using a PreparedStatement for the query.
    Seems to me I had this (empty stream) problem using a regular Statement query. When I switched to a PreparedStatement, it miraculously worked. I never have figured out why.

  • Converter Problem

    I am probably making a very simple error here, but I have checked the Forum and cannot find anyone who has had the same problem.
    I have written an applet called "Proposal" which I have created in a package called "proposal". (i.e. proposal.Proposal)
    After successfully compiling the applet, I have had trouble converting the class file into a cap file. I have studied the the examples that accompany the java card kit. From these I have manufactured my own Proposal.opt file which is as follows:
    -out EXP JCA CAP
    -exportpath c:\jdk1.3.1_04\java_card_kit-2_2\api_export_files
    -applet  0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1 proposal.Proposal
    proposal
    0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2 1.0When I run the following command from c:\java:
    "converter -config proposal\Proposal.opt"
    I get the error:
    "error: class Proposal does not belong to package proposal."
    My source, class and opt file reside in the "c:\java\proposal" directory.
    Can anyone help?
    N.B. I am using win2k and JDK1.3.1_04

    Its ok guys, I've solved the problem....and it was a very silly mistake!
    In my code I declared the package to be
    package proposal.Proposal; when in fact it should have just been
    package proposal; That indeed was a schooboy error, although I would have thought the compiler should have picked that one up?
    Damian

  • JAVA Chinese in Symbian OS

    Hi, all...
    I'm currently writing a small program for Symbian OS (mobile OS) which used Unicode as the default system encoding.
    The Symbian OS only supported JDK 1.1.8... nothing much I can use.... hmm...
    I have a few questions that is confused me.
    I'm using following code to read an big5 encode text file:
    BufferedReader in = new BufferedReader(
          new InputStreamReader(
          new FileInputStream(modeName(iMODE,true)),"MS950"));and the format of the file is:
    <index> <word1> <word2> <word3> ....<wordn>
    aaaaa cWORD1 cWORD2 cWORD3 ....
    aaaab cWORD4 cWORD5 cWORD6 ....
    aaaac cWORD7 cWORD8 cWORD9 ....
    etc... cWORD? are big5 encoded characters
    I'm wandering, if I use the code above to process the text, then I try to setText("cWORD1") to the TextArea, will JAVA convert to the Unicode automatically?
    Do I need to convert the read-in file into Unicode first?
    In short, do I have to do anything with the text file (such as change encoding)? or do any convertion during the processing? or just leave it, JAVA will handle the encoding?
    Any help/idea/hint?
    thanks,
    Rick,

    It is more accurate to talk about JVM rather than System.
    There are at least two types of outputs.
    1) Output through the java.io package.
    In this case you can use your encoding (e.g., UTF8 or other) when writing or printing in a file, for example.
    E.g.
    BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("output.txt"),"UTF8"));2) In the case of your using the package java.awt and the method <java.awt.Graphics>.drawString(String, int, int), you do not have to worry about the encoding. For example the next will show a sequence of meaningful chinese characters (though the sentence was taken arbitrarily from a book at hand).
    //import java.awt.*;
    class TestPanel extends Panel {
      public void paint(Graphics g){
        g.drawString("\u9020\u5206\u5929\u5730\u5316\u6210\u842c\u7269", 40, 40);// here you do not refer to the encoding
    }// add an instance of this class to a suitable java.awt.Frame instance

  • Unsigned datatypes in java?

    need help with the following topic:
    I am sending a u_char value (0-255) from an ANSI C server to a JAVA Applet(client). I want to use this value as a counter from 0 to 255.
    The receive buffer in the Applet is of type "byte". If a value larger than 127 arrives, overflow occurs. How do I get the java code to work with values larger than 127, as I want to use that most significant bit as a value and not as a sign representer? It seems as if java does not support unsigned data types...

    first of all, 255 as a value doesn't exist in java for bytes.
    So no, it won't turn 255 into anything.
    It will turn -1 into 255, -2 into 254, -3 into 253, ...., -128 into 128 which is exactly what the OP wants.
    If by 255 you mean the byte value of -1, then here is what will happen
    1. Java converts the byte to an int. Since -1 is negative then the extra space is filled with set bits (1's).
    11111111 -> 11111111111111111111111111111111
    2. The '0xFF &' operation will clear all of the bits except for the lower eight
    11111111111111111111111111111111 -> 00000000000000000000000011111111
    3. and viola, you have a value from 0 to 255 (inclusive)

  • Where is Taligent's 'Porting C++ to Java'?

    I have spent several hours searching the Web for
    'Porting C++ Java' and similar as search key.
    I have found and downloaded three:
    1. Moving C and C++ code to Java (in Java Tricks of the
    Programming Gurus) by Glenn L. Vanderburg. et al.
    2. Porting a C++ Application to Java Danny Kalev (in C++ user's Journal)
    3. How to Convert C to Java published on Jazillian's (a
    C to Java converter program) web site.
    I have seen numerous references to Taligent's 'Porting C++ to Java'
    or 'Cookbook for porting C++ to Java', so I believe this must be
    important. Most of the references lead to an IBM Developer's page,
    but I have not been able to find Taligent's document there.
    Maybe it has been removed.
    Any other ways of getting hold of it?
    Are there any other documents about porting C/C++ to Java?

    IBM I'm sure would rather forget about Taligent, so I'd say you are probably out of luck.
    It may be going around under the guise of a different name, or you may find it on a fan site, but you won't be finding it on an IBM site.

Maybe you are looking for