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

  • Home
  • SEARCH
  • 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 508189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:52:54+00:00 2026-05-13T06:52:54+00:00

I am about to start developing a small Java desktop app. The app is

  • 0

I am about to start developing a small Java desktop app. The app is just an engine for which the user provides Java classes to do the work (translating input to output).

I would like the user to provide actual Java classes as files that can be loaded (and reloaded) on the fly.

For this particular use, is there any reason why Java would be more cumbersome than Groovy or Beanshell? I’m not asking for a comparison of Groovy/Beanshell and Java as there are many. Rather, I want to know if it’s easier to dynamically load Groovy or Beanshell classes from files compared to Java.

For Java 1.6, is the JavaCompiler the best way to dynamically load code? I would like to use all language features so I think Janino is out. Also, any problems with reloading?

Note: I have seen this and this, but I’m not sure they answer my question.

  • 1 1 Answer
  • 1 View
  • 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-13T06:52:54+00:00Added an answer on May 13, 2026 at 6:52 am

    JavaCompiler is very versatile, but it entails a minor, potential configuration problem: In javax.tools, ToolProvider.getSystemJavaCompiler() identifies the compiler’s class as com.sun.tools.javac.api.JavacTool. On some platforms, that class is not part of the JRE; a JDK appears to be required. Here is an example.

    Also consider javax.script, discussed here. Several scripting engines are supported.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to start work on my first big iOS app, but haven't really
I'm about to start developing a large-scale system and I'm struggling with which direction
I'm about to start developing a small Windows application using Microsoft Visual C# 2008
We are about to start developing an ERP for small companies, and the question
I'm about to start developing a web app and require the use of XSLT
I'm just about to start a small mobile site that will be written in
I am about to start developing an Android application and had a question if
I'm about to start developing a Business application where I want the frontend to
I have been developing a small Java utility that uses two frameworks: Encog and
After developing ASP.NET apps exclusively for several years I'm about to start developing Winforms

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.