RINEARN
HOMEINFOSOFTTECHAICONTACT
RINEARN > English Top > RINPn > User Guide
[ Prev | Index | Next ]
Japanese English

Step 5 - Implement Functions/Variables in Java™
(Plug-in Development)

To expand RINPn's functionality, let's implement plug-ins in the Java programming language.

» Ask the AI for help (ChatGPT account required)
- Table of Contents -
  • How to Use Plugins
  • How to Compile Plugins
  • How to Add New Plugins
  • Vnano Standard Plugins

Sponsored Link


You can implement new built-in variables and functions using the Java™ programming language. Within RINPn and Vnano, we refer to Java™ programs that provide built-in functions or variables as "plugins."

Utilizing Java offers advanced functionality compared to defining variables/functions in script code (as in step-4).

However, implementing code in Java requires the Java Development Kit (JDK) to compile the code. We assume that JDK is installed on your PC and that the "javac" command is available. For installation details, you can search online with keywords like "OpenJDK install (your OS name)".

How to Use Plugins

To use plugins with RINPn, place them in the "plugin" folder of RINPn. A simple example of a plugin, "ExamplePlugin.java," is located in this folder:

(Content of "ExamplePlugin.java" in the "plugin" folder)

public class ExamplePlugin {

    public double pivar = 1.0;

    public double pifun(double arg) {
        return arg * 2.0;
    }
}

This plugin is compiled by default and set to be loaded (details on setting this up will be explained later).

The variable "pivar" and the method "pifun(arg)" can be used as built-in variables/functions in the calculator (see Step-1 and 2) and in script code (see Steps-3 and 4).

For example:

INPUT:
1 + pivar

OUTPUT:
2

INPUT:
pifun(2)

OUTPUT:
4

How to Compile Plugins

When you modify a plugin's code, it needs to be recompiled as follows:

cd (directory of RINPn)
javac ExamplePlugin.vnano

Some compiled class files of special plugin interfaces (XFCI1, XNCI1, etc.) supported by the Vnano Engine are included in the "plugin/org/vcssl/connect" folder. You can import these interfaces in your plugin and compile them similarly.

How to Add New Plugins

To add a new plugin, place it in the "plugin" folder and compile it. Then, add the path of the compiled class file to the "VnanoPluginList.txt" file within the "plugin" folder. All plugins listed in "VnanoPluginList.txt" will be loaded by RINPn.

Vnano Standard Plugins

In the "plugin/org/vcssl/nano/plugin" folder, "Vnano Standard Plugins," which provide basic features like math and utility functions, are bundled and loaded by default (as specified in "VnanoPluginList.txt"). You can use their functions and variables by default.

For a comprehensive list and detailed specifications of Vnano Standard Plugins, visit the "Vnano Standard Plugins" page on the official Vnano website.

Additionally, the RINPn frequently uses functions/variables, and simplified explanations of these are listed in the section: Appendix - List of Built-in Functions/Variables..

- Trademarks/Credits -
  • Oracle and Java are registered trademarks of Oracle and/or its affiliates.
  • Microsoft Windows is either a registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
  • Linux is a trademark of linus torvalds in the United States and/or other countries.
  • Other names may be either a registered trademarks or trademarks of their respective owners.

Author of This Article

Fumihiro Matsui
[ Founder of RINEARN, Doctor of Science (Physics), Applied Info Tech Engineer ]
Develops VCSSL, RINEARN Graph 3D and more. Also writes guides and articles.
| About Me | Contact |

Translation Cooperator

ChatGPT AIs
[ GPT-3.5, 4, 5, 5.1 ]
We greatly appreciate the cooperation of ChatGPT AIs in translating this article.
» How we translated this article


Sponsored Link



Japanese English
[ Prev | Index | Next ]
RINEARN > English Top > RINPn > User Guide
  • Introduction - Overview of RINPn and How to Get Started
  • Step 1 - Using RINPn in GUI Mode
  • Step 2 - Using RINPn in CUI Mode (Command-Line Terminal)
  • Step 3 - How to Execute Scripts
  • Step 4 - How to Add Functions/Variables by Scripts (Library Scripts)
  • Step 5 - Implement Functions/Variables in Java™ (Plug-in Development)
  • Step 6 - How to Embed into Other Software
  • Appendix - List of Built-in Functions/Variables
Index of this category
RINEARN > English Top > RINPn > User Guide
[ Prev | Index | Next ]
  • Introduction - Overview of RINPn and How to Get Started
  • Step 1 - Using RINPn in GUI Mode
  • Step 2 - Using RINPn in CUI Mode (Command-Line Terminal)
  • Step 3 - How to Execute Scripts
  • Step 4 - How to Add Functions/Variables by Scripts (Library Scripts)
  • Step 5 - Implement Functions/Variables in Java™ (Plug-in Development)
  • Step 6 - How to Embed into Other Software
  • Appendix - List of Built-in Functions/Variables
News

Exevalatorv2.4Released—MCPSupportAdded,NowUsableasanAICalculationTool
2025-11-15 - We'vereleasedExevalatorv2.4,ourexpression-evaluationlibrary.Startingwiththisversion,itsupportsMCP,makingitusableasacalculationtoolforAIassistants.

Exevalatorv2.3Released—NowUsablefromPython
2025-11-04 - We'vereleasedExevalatorv2.3.Startingwiththisversion,youcannowuseitfromPython!WithgrowingdemandaroundAItooldevelopmentinmind,wesharethedetailshere.

ExevalatorUpdated—EasyJapaneseLocalizationforErrorMessages
2025-10-31 - Exevalator2.2.2isout.YoucannowlocalizeerrormessagestoJapanesewithasimplecopy-and-paste,andwe'veincludedseveralbugfixesandminorparseradjustments.

InsideRINPnOnline:ArchitectureOverview
2025-10-22 - AninsidelookatthearchitectureoftherecentlylaunchedonlineversionoftheRINPnscientificcalculator.It'sopensource,soyoucanfreelymodifyandreuseittobuildyourownwebcalculator(maybe!).

MeetRINPnOnline:UsetheScientificCalculatorAnywhere,Instantly
2025-10-21 - RINPn,thefreescientificcalculator,nowhasanonlineversionyoucanuseinstantlyinyourbrowser—onbothPCandsmartphones.Readtheannouncementfordetails.

TheVCSSLSupportAIisHere!—RequiresaChatGPTPlusAccountforPracticalPerformance
2025-08-19 - AnewAIassistantfortheVCSSLprogramminglanguageisheretoansweryourquestionsandhelpwithcoding.ThisarticleexplainshowtouseitandshowcasesplentyofrealQ&Aandgeneratedcodeexamples.

EnglishDocumentationforOurSoftwareandVCSSLIsNowNearlyComplete
2025-06-30 - We'rehappytoannouncethatthelarge-scaleexpansionofourEnglishdocumentationwiththesupportofAI—aprojectthatbegantwoyearsago—hasnowreacheditsinitialtargetmilestone.

VCSSL3.4.52Released:EnhancedIntegrationwithExternalProgramsandMore
2025-05-25 - Thisupdateintroducesenhancementstotheexternalprogramintegrationfeatures(e.g.,forrunningC-languageexecutables).Severalotherimprovementsandfixesarealsoincluded.Detailsinside.

» View More Articles
See Our News
on Twitter !
RINEARN Official Website | Top Page | Privacy Policy |
This website uses cookies for serving ads and analyzing traffic data. By continuing to use this website, you agree to our privacy policy.
This website is managed by RINEARN. All rights to the contents of this website are owned by RINEARN and its owner.
Copyright(C) RINEARN 2009 - 2025 All rights reserved.