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 6055589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:16:53+00:00 2026-05-23T08:16:53+00:00

In etherpad’s source I’ve seen code like: jimport(java.util.Date, JDate); But it doesn’t seem like

  • 0

In etherpad’s source I’ve seen code like:

jimport(java.util.Date, "JDate");

But it doesn’t seem like some kind of javascript standard.

How is it done?

  • 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-23T08:16:53+00:00Added an answer on May 23, 2026 at 8:16 am

    Looks like you’re looking at the etherpad source. There they defined a helper function named jimport.

    As mentioned, etherpad uses Rhino as its Javascript engine, which have Java available at his fingertips. So it is enough to make

    file = java.io.File
    

    in order to “import” it.

    This function uses the helper function _jimportSinglePackage, to inject the Java package into the local Javascript scope.

    This function receives the package name, and the global scope to which it’ll inject the package to, and given a.b.c its essentially calling globalscope[c] = a.b.c, in order to import this Java package.

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

Sidebar

Related Questions

Prescript: The amazing etherpad was recently open sourced. Get it here: http://code.google.com/p/etherpad . This
There are many free etherpad implementations since it went open source. Does etherpad support
I'd like to utilize an etherpad interface on my website. Two questions: 1) is
I recently stumbled upon Etherpad, it's a collaborative writing tool http://code.google.com/p/etherpad/ - main project
I feel like this is probably a pretty dumb question, but I am just
https://github.com/ether/pad/tree/master/etherpad If you click on that, then go to bin, the URL changes, but
I noticed that etherpad, when it was alive ( and living clones of it
Does anyone have an EtherPad Database Schema? I googled for it, see tons of
I'm curious to learn how Etherpad and Google Docs automatically save data. When you're
We need to implement a real time code collaboration. With all the functionalities that

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.