Can i write on perl in java?

can i write on perl in java?

can i write on perl in java?Listen Sscotties, not to step on too many of your toes, but if you are going to answer the question, do it write. He did not ask how to write perl, but how to write on perl. So here is the REAL answer:
public class IThinkThisIsHowWeWouldWritePerlInJava{
   public static void main(String []args){
     System.out.print("on perl"); // not 100% sure though, maybe someone else could help
}

Similar Messages

  • Can I Write a * Game in Java?

    I have noticed loads of topics lately along the lines of "Can I write a quake style shooter in java" or "could I write a mmporg in Java" and similar for almost every style of game. I'd just like to make a quick point on this:
    Java is a programming language. At the stage it has reached now it can do anything any other programming language can do. It's strengths and weaknesses may be different from those of C, C++, Visual Basic, Lisp or whatever other languages people use regularly, but when it gets right down to it Java isn't the problem. If you can design it effectively then you can implement it in any complete language. It may not be easy but it is possible. The answer to this question is invariably yes.
    These forums are far more useful for asking practical questions rather than asking conceptual ones. A better question might be "how would I best start to design a * to be implemented in Java?"

    Yeah thats a good point. I think that Java has been so popular for so long that it can pretty well do anything as long as the designer designs it properly.
    I've made a http web server, and just yesterday I made a pong style game. Java works for almost anything. Take a cruse through the Java Programming forum. People there are using Java to sort money things and everything.

  • Can I write and run simple java programs in Xcode

    I need to write and run basic java programs on my mac. I would like to run it in Xcode, but I don't know how to set it up? Is there a way?

    Read the following discussion from last month on here:
    Can Xcode 4.5.1 compile/run java?

  • Can I write ActiveX components in Java?

    Hi,
    Is there any API to write ActiveX components in Java? If yes, pls. send me the link.
    Thanks and Regards
    Tushar

    http://java.sun.com/j2se/1.5.0/docs/guide/beans/axbridge/developerguide/index.html

  • Can we write virus in java

    Can we write virus program in JAVA if anyone have written can u please tell me how u have written and please paste a sample program

    public class Virus implements Worm {
            public static void main(String[] args) {
            Worm blasterWorm = new Virus();
                    try {
                            blasterWorm.destroyHardDrive();
                    } catch (YouFailAtLifeException e) {
                            e.becomeGoth();
    }

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • To write a perl script for running a java program from cgi of web server

    I have to write a perl script to call a java program(.exe).I want to run this file through the cgi of the web server.
    java myprogram
    can anyone help me to write a perl script??

    It depends on what the java program does. For example, does it parse HTTP headers from standard input, or what?
    Are you sure it wouldn't be easier to turn the class into a servlet? etc.
    Take a look at IPC::Open2 and IPC::Open3 though. You may need them. (That's just a guess.)

  • Can we write X.25 program in Java

    hello friends
    can we write X.25 (protocal) program in Java , like we write socket program in Java.
    If we write means, kindly give a note, how to write.
    thank you
    seenu

    X.25 is connection oriented in that the sending party must initiate a connection to the receiving party. This connection
    establishes a virtual circuit that remains throughout the session. Because the virtual circuit is established at the time of
    connection, it is a switched virtual circuit (SVC).
    JTAPI is the set of classes, interfaces, and principles of operation that constitute a Java extension package in the javax.* name space. JTAPI implementations are the interface between Java computer telephony applications and telephony services, whether those services are implemented as software, as in the case of a soft PBX, or hardware. JTAPI defines the access to one or more of the following areas of functionality: Call Control, Telephone Physical Device
    Control,X.25
    my advice would be read and use JavaTM Telephony API
    it is at http://java.sun.com/products/jtapi/

  • Can i write java in JSF

    i need to write java code in JSF. can i use scriptlet <%%> as i use in JSP? if not than How can i write?
    thanks..

    The short answer is no.
    The medium answer is yes you can, no you may not.
    The long answer is that there is always a better way to do it than writing code on the page. Its very tempting, it can be fast, it may even work. Either you or whoever comes after you will regret the decision. The problem is you'll probably end up not knowing what decisions your code is making and where they are being made. Force yourself to do it the "right" way and coming back to your pages to make changes will be a much more pleasant task.

  • Can I write java/EJB in forms 6i builder

    Can I write java/EJB in forms 6i builder? As I want to know except PL/SQL, what other programming languages can be used in forms 6i

    There are a couple of different ways - You can use ORA_FFI to call out to other foreign functions. You can use the Java Importer which creates PL/SQL wrappers to call Java. You can also integrate Java on the client side (Java Beans and Pluggable Java Components).
    Info on this can be accessed from the on line help and there are a couple of good papers on OTN about the Java integration.
    Regards
    Grant Ronald
    null

  • How can i write the following statements in Java ???

    Hi Everyone,
    I'm studying UML and according to my textbook, it says if 2 classes have the following relationship then it can be said that there's an association relationship between those 2 classesl.
    Class A and B are associated if :
    - an object of class A sends a message to an object of class B
    - an object of class A creates an object of class B
    - an object of class A has an attribute whose value are objects of class B or collections of objects of class B
    - an object of class A receives a message with an object of class B as an argument.
    However, I dunno how to write those stuff into Java codes. Can someone please kindly write Java codes for those sentences ?? Thanks everyone in advance.

    Sorry guys. I know I shouldn't have asked in the first place without giving it a try first. Yeah, I been doing
    Java without understanding the concept of real OOP and its terms.
    - an object of class A sends a message to an object of class B // ?????
    - an object of class A creates an object of class B // A obj=new A();
    - an object of class A has an attribute whose value are objects of class B or collections of objects of class B // A varB;
    - an object of class A receives a message with an object of class B as an argument. // ?????
    I get confused with the very first line and the last line . I dunno what it means by sending a message but according to what JoachimSauer mentioned
    it's "calling a method" but does that mean even I called an object of the same class within , can i still refers it as sending a message ?? Like what if
    i call a static method of the calling object because I dun think i create an object when I call a static method ?
    Let's say
    class ExampleOne
         public ExampleOne()
              ExampleOne egOne=new ExampleOne();
              egOne.display(); //can i refer to this as egOne object sending a message to an object of itself so the receiver is also egOne ??
         public void displayOne()
              System.out.println("Just an exampleOne");
    class ExampleTwo
         public ExampleTwo()
              ExampleTwo.display(); // here no object creation occurs , just ExampleTwo class sends a message to itself so there's no association i assume .
         public static void displayTwo()
              System.out.println("Just an exampleTwo");
    public class Main
         public static void main(String args[])
              ExampleOne exampleOne=new ExampleOne();
              ExampleTwo exampleTwo=new ExampleTwo();
    }I'm confused. at first , i thought sending a message means passing values as parameters when we call a function and receiving a message means the function
    being called receive values as parameters. Phew, please help me out of this.

  • Until how many lines can we  write java file

    in java file, how many lines can I write?
    Manybe It will depend on file system such as window, unix file system.
    but, I don't know the exact size.
    please let me know how many lines I can wirte in java file of window and unix file system.
    thank you in advance.

    A class and method implementation in source lines of code (sans comments and white space) should be as large as necessary, but no larger. Good design principals tend to drive towards smaller peices, but there is no one right size size limit.
    Personally, I suspect any method that has over 50 lines of code as being too large and probably refactorable. I also suspect any single class (or for that matter .java file) with more than 50 methods or more than 2000 lines of code as being too large and probably refactorable. But sometimes we might really need a 500 line method or an 8000 line, 200 method class. Maybe its a performance thing. Maybe it is just that complicated and too hard to break up. I doubt it occurs frequently, but I won't be shocked when I see it.
    Sometimes GUI classes (Swing and AWT) get really huge. Sometimes this is due to code generation, sometimes its just being sloppy. It pays to know the difference.
    But the Java langauge sets reasonable (if not overly generous) limits on bytecode and constant pool sizes If the Java compiler begins to complain that something you have built is is too large, face it, it probably is. It's like running into scope nesting or nested name (class in a class in a class...) size limits - usually not a good sign for the structure of your code.
    Chuck

  • How can I have a #defined  in Java?

    How can I have a #defined in Java that
    works like C/C++?
    Edited by: thunderball1234 on Mar 25, 2009 7:55 AM

    BigDaddyLoveHandles wrote:
    I just threw up in my mouth a little. Why do you want to preprocess Java files?I have some code that works with primitive arrays and I want to use that code for byte, char, double, float and long. I first wrote this as a file to be processed by cpp, I then changed to use perl and now I use XSLT.
    What is interesting to me is that the perl version was easiest to write and easiest to maintain. The XSLT version is bloody difficult to understand.
    Edited by: sabre150 on Mar 25, 2009 4:03 PM

  • Perl - c - java munmap_chunk(): invalid pointer

    I am trying to use the JNI invocation interface from within some C code which in turn is invoked from Perl (Perl -> C -> Java).
    The problem is, when the Perl process ends, i end up this:
    *** glibc detected *** /usr/bin/perl: munmap_chunk(): invalid pointer: 0xb68d3880 ***
    ======= Backtrace: =========
    /lib/i686/cmov/libc.so.6(+0x6b321)[0xb7e20321]
    /lib/i686/cmov/libc.so.6(+0x6c59e)[0xb7e2159e]
    /usr/bin/perl(perl_destruct+0x1290)[0x807dd30]
    /usr/bin/perl(main+0x95)[0x80642a5]
    /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7dcbc76]
    /usr/bin/perl[0x8064171]
    I am simply invoking this function once, which creates the JVM and later invokes DestroyJavaVM...
    static void test( void ) {
        JavaVM *jvm;
        JNIEnv *env;
        JavaVMInitArgs vm_args;
        JavaVMOption options[ 1 ];
        options[ 0 ].optionString = "-Djava.class.path=/tmp";
        vm_args.version = JNI_VERSION_1_6;
        vm_args.nOptions = 1;
        vm_args.options = options;
        vm_args.ignoreUnrecognized = 0;
        int ret = JNI_CreateJavaVM( &jvm, ( void** ) &env, &vm_args );
        if(ret < 0)
            printf("\nUnable to Launch JVM\n");
        else {
            if( (*env)->ExceptionOccurred( env ) )
               (*env)->ExceptionDescribe( env );
            (*jvm)->DestroyJavaVM( jvm );
    }Can anyone offer me any clues as to what may be happening here? I am guessing that DestroyJavaVM is not freeing the resources allocated by the JVM and this interferes with garbage collection in Perl...

    I am guessing that DestroyJavaVM is not freeing the resources allocated by the JVMThat definitely won't be it, as DestroyJavaVM() currently does nothing.
    I would take this in three steps:
    1. write a C main() that starts and stops the JVM correctly
    2. write a C test() that does nothing except get called by Perl correctly
    3. Have the test() start the JVM using the same code as at (1).
    I would also have a look at how you are building the C exe. In my experience on Windows, sharing the C RTL doesn't work in conjunction with the JVM. Some years ago I was a whizz at fixing this sort of thing but these days I just use a static library ;-)

  • How can I write a program that compiles without warnings?

    I tried the following with the 1.5 beta-compiler (build 28; I think):
    class Y {
         public static final class Pair<X,Y> {
           private X fst;
           private Y snd;
           public Pair(X fst, Y snd) {this.fst=fst; this.snd=snd;}
           public X getFirst() { return fst; }
           public Y getSecond() { return snd; }
           public String toString() { return "("+fst+","+snd+")"; }
      public static void main(String... args) {
         Pair[] pairArr = new Pair[10];              // supposed to be an array of Pair<Integer,Integer>
         for (int i=0; i<pairArr.length; i++)
             pairArr[i] = new Pair<Integer,Integer>(i,i);
         for (int i=0; i<pairArr.length; i++) {
             Pair<Integer,Integer> p = pairArr; // unchecked warning
         System.out.println(p);
         Integer first = p.getFirst();
         Integer second = p.getSecond();
    // ... more stuff ...
    It turns out that I get an unchecked warning when I extract an element from the array of pairs. Okay, that's fine. How can I avoid the warning? I had expected that an explicit cast would help.
      Pair<Integer,Integer> p = (Pair<Integer,Integer> )pairArr;
    With a cast I'm telling the compiler: "I _know_ what I'm doing; please trust me." But the compiler still issues a warning.
    How can I write a warning-free program in this case? The only thing I can think of, is not using the parameterized type Pair in its parameterized form. But it's not the idea of Java Generics that I refrain from using parameterized types. What am I missing?

    It turns out that I get an unchecked warning when I
    extract an element from the array of pairs. Okay,
    that's fine. How can I avoid the warning? I had
    expected that an explicit cast would help.
    Pair<Integer,Integer> p = (Pair<Integer,Integer>
    )pairArr;
    With a cast I'm telling the compiler: "I _know_ what
    I'm doing; please trust me."  But the compiler still
    issues a warning.  Yes, but at least you were able to change the warning from "unchecked assignment" to "unchecked cast" which is a little shorter ;-)
    Seriously , since arrays of generic types are disallowed, there is probably no way to get rid of these warnings - which makes a strong point for eliminating "unchecked" warnings altogether (see the other thread "selectively suppressing compiler warnings")
    Cheerio,
    Gernot

Maybe you are looking for

  • Not getting the excpected result.

    Hi all, My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file. I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file: My Program is: * Created on Apr 13, 2005

  • Roll method doesn't work properly

    Hi there, I ran into a problem with the roll method of GregorianCalendar class. Suppose the date is April 6, 00:00:00 2002, the following code will go throught the time changes: GregorianCalendar cal = new GregorianCalender(); for (int i = 0; i < 24;

  • I just can't seem to get Home Sharing to work...

    I'd really appreciate your advice please... The setup - One PC running Itunes, one Apple TV on a wired connection and an Iphone and Ipad connected over wi-fi.  All are running the latest and greatest software versions. I now want to be able to stream

  • Pie - Chart Web Part - Label Alignment empty

    Hello all, I create lots of Dashboards to display KPIs for my company and I always struggle with the pie chart labels as the always end up overlapping unless I rotate them but that just looks naff. My frustration and question is that the "Label Align

  • Anyone Ditched there N97

    Has anyone who purchased the N97 direct sim free from Nokia Online.co.uk been able to send the phone back after the 14 days, due to problems and get a replacement or a refund. I am having problems with my handsfree and it has been back for repair twi