Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6959719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:18:32+00:00 2026-05-27T15:18:32+00:00

In this README I give instructions for a quick CL for testing the released

  • 0

In this README I give instructions for a quick CL for testing the released tool. I think it would be much better if I provided a .bat and unix script which executed the commands in one click/command. At the same time, unlike a compiled program, it’s transparent and users can open the script with the editor and inspect the commands executed.

Can I in a bat save a file?
This is what I’d like it to execute.

$ vim Test.java (windows: notepad Test.java) 

class T { 
private static void p(int i, Double d, String... s){} 
} 

public class Test{ 

@com.dp4j.InjectReflection public void t() { 
T.p(1,new Double(2),"hello", "reflection"); 
} 
} 

$ ls Test.class T.class (windows: dir Test.class T.class) 
ls: Test.class: No such file or directory ls: T.class: No such file or directory

$ javac -cp dp4j-1.0-jar-with-dependencies.jar Test.java 
$ ls Test.class T.class (windows: dir Test.class T.class) 
ls Test.class T.class 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:18:33+00:00Added an answer on May 27, 2026 at 3:18 pm

    This is a unix exectable script that does what I want. I don’t know if it works with cygwin on windows:

    #!/bin/sh
    
    v=1.1
    test_file="Test10.java"
    jar_file="dp4j-$v-jar-with-dependencies.jar"
    
    cmd="curl -O --fail -L http://downloads.sourceforge.net/project/dp4j/$v/$jar_file"
    echo $cmd
    $cmd
    echo
    
    # Start
    cat > $test_file << __EOF__
    class T10 {
        private static void p(int i, Double d, String... s){}
    }
    public class Test10{
        @com.dp4j.InjectReflection
        public void t() {
      T10.p(1,new Double(2),"hello", "reflection");
        }
    }
    __EOF__
    cmd="cat $test_file"
    echo $cmd
    $cmd
    
    echo
    cmd="javac -Averbose=true -cp $jar_file $test_file"
    echo $cmd
    $cmd
    echo
    echo "TEST PASSED: $test_file was compiled with Reflection Injected." 
    echo "When JUnit/TestNG.jar is in the classpath you may use @Test in lieu of @InjectReflection."
    echo "Javadoc, sources, and other artifacts maybe downloaded from http://repo2.maven.org/maven2/com/dp4j/dp4j/"$v"/"
    

    Here’s one line command to download it and execute it:

    wget http://sourceforge.net/projects/dp4j/files/1.2/TESTDRIVE ;  chmod +x TESTDRIVE ; ./TESTDRIVE
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the instructions in this github readme file (at the bottom) to make
In this, I would see Readme, but the value would be set to 1
this is copied from http://www.zenspider.com/ZSS/Products/RubyInline/Readme.html , the home of rubyinline, adding/moding as indicated in
For this directory structure: . |-- README.txt |-- firstlevel.rb `-- lib |-- models |
In the NVIDIA README for the Quadro card X driver, there is this comment:
I noticed this little tid-bit in the readme for pickle : (The latest version
I've just seen this library https://github.com/technomancy/clojure-http-client with this snippet of code on the README
The readme included with the new Xcode 3.2.1 this week says the following: Static
I came across this: >>> import os >>> os.system('ls') file.txt README 0 What is
https://github.com/nathanborror/django-basic-apps/blob/master/README.rst I am trying to implement this blog module my question is that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.